[jbosstools-issues] [JBoss JIRA] (JBIDE-18685) Sometimes the internal browser shows cached outdated content when using Show In Web Browser

Snjezana Peco (JIRA) issues at jboss.org
Sun Dec 7 10:25:39 EST 2014


    [ https://issues.jboss.org/browse/JBIDE-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025713#comment-13025713 ] 

Snjezana Peco edited comment on JBIDE-18685 at 12/7/14 10:25 AM:
-----------------------------------------------------------------

[~rob.stryker],
I have created a patch. 
You can test it as follows:

- import the org.eclipse.ui.browser plugin with the source folders
- open WebBrowserEditor and add the following code:

{code}
webBrowser.getBrowser().addProgressListener(new ProgressListener() {
			
	public void completed(ProgressEvent event) {
		webBrowser.getBrowser().removeProgressListener(this);
		String url = webBrowser.getURL();
		if (url != null && url.startsWith("http")) {
			webBrowser.refresh();
		}
	}
			
	public void changed(ProgressEvent event) {
	}
});
{code}

before line 80 (webBrowser.setURL(initialURL); )

- start an Eclipse Launch Configuration and test the issue.



was (Author: snjeza):
[~rob.stryker],
I have created a patch. 
You can test it as follows:

- import the org.eclipse.ui.browser plugin with the source folders
- open WebBrowserEditor and add the following code:

{code}
webBrowser.getBrowser().addProgressListener(new ProgressListener() {
			
	public void completed(ProgressEvent event) {
		webBrowser.getBrowser().removeProgressListener(this);
		String url = webBrowser.getURL();
		if (url != null && url.startsWith("http")) {
			webBrowser.refresh();
		}
	}
			
	public void changed(ProgressEvent event) {
	}
});
{code}

before line 80 (webBrowser.setURL(initialURL);)

- start an Eclipse Launch Configuration and test the issue.


> Sometimes the internal browser shows cached outdated content when using Show In Web Browser
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-18685
>                 URL: https://issues.jboss.org/browse/JBIDE-18685
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server, upstream
>    Affects Versions: 4.2.0.CR2
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>             Fix For: 4.3.0.Final
>
>
> Sometimes "Show in web browser" on a server in Server View results in wrong content being shown. When you start EAP 6, open the home page in web browser, then stop EAP, start AS7, open the home page again (using Show In) and the browser will still show EAP's home page.
> [~ljelinko] discovered this bug on Linux and I was able to reproduce it on OS X.
> I understand that this might be a problem in Eclipse itself, that's up to you, Rob, to investigate :)



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jbosstools-issues mailing list