Bug 199364 [Browser] Internal Web Browser get pop up with the address bar empty
The internal web browser poped up when triggered with this code IWorkbenchBrowserSupport browserSupport = MyPlugin.getDefault() .getWorkbench().getBrowserSupport(); browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.LOCATION_BAR, null, null, null); URL url = new URL(inURL); browser.openURL(url); The browser works fine, but the address bar is empty at the initial stage and need to drop down it to view the URL and set it.
bundles/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/BrowserViewer.java
if (locationListener != null)
            locationListener.locationChanged(null);
    }
    /**
     *
     */
    private void addBrowserListeners() {
        if (browser==null) return;
        
        
        browser.addStatusTextListener(new StatusTextListener() {
            public void changed(StatusTextEvent event) {
					
                if (container != null) {
                    IStatusLineManager status = container.getActionBars()
                            .getStatusLineManager();
                    status.setMessage(event.text);
                }
            }
        });
        
        
        
        
        
        browser.addOpenWindowListener(new OpenWindowListener() {
            public void open(WindowEvent event) {
                Shell shell2 = new Shell(getShell(), SWT.SHELL_TRIM );
                shell2.setLayout(new FillLayout());
                shell2.setText(Messages.viewWebBrowserTitle);