AbstractTextField.selectAll() doesn't work anymore in a modal window for th

I face a very strange bug with Vaadin 7.4.8

The selectAll() function doesn’t work anymore in a modal window, only with Chrome. It work well with IE, and it was working well before with Vaadin 7.1

Look a this snippet :

package com.example.graphic;

import javax.servlet.annotation.WebServlet;

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;

@SuppressWarnings("serial")
@Theme("graphic")
public class GraphicUI extends UI 
{

    @WebServlet(value = "/*", asyncSupported = true)
    @VaadinServletConfiguration(productionMode = false, ui = GraphicUI.class)
    public static class Servlet extends VaadinServlet {
    }

    @Override
    protected void init(VaadinRequest request) 
    {
        final VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        setContent(layout);

        Button button = new Button("Click Me");
        button.addClickListener(new Button.ClickListener() 
        {
            public void buttonClick(ClickEvent event) 
            {
                openPopup();
            }
        });
        layout.addComponent(button);       
    }
 
    private void openPopup() 
    {
        Window w = new Window();
        w.setModal(true);
        
        VerticalLayout layout = new VerticalLayout();
        TextField tf = new TextField();
        tf.setValue("mycontent2");
        tf.selectAll();
        
        layout.addComponent(tf);
        w.setContent(layout);
        w.center();
        UI.getCurrent().addWindow(w);   
    }
}

With IE, in the browser when you click on the button “Click Me”, a modal windows appears with the text
mycontent2
selected.

It doesn’t work in Chrome. It work with Chrome, but with Vaadin 7.1, not Vaadin 7.4.8.

Any ideas ?

Notice that if I remove the line 47

w.setModal(true); the text is selected as we want

In fact, this problem seems to be related with this thread

https://vaadin.com/forum#!/thread/10059726/10073424

and this bug bug report :

https://dev.vaadin.com/ticket/17731

I changed version to 7.4.4 and now it is working well

So i will wait that the bug #17731 is corrected …