[
https://issues.jboss.org/browse/JBIDE-18685?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-18685:
-------------------------------------
Replicated. Unfortunately, IWebBrowser seems to only have 3 interface methods: getId(),
close(), and openUrl(URL)... there doesn't appear to be a refresh on the interface.
It seems the refresh action is only on the widget in charge of the editor basically.
So far I've traced this far in BrowserViewer.class:
{code}
private boolean navigate(String url) {
Trace.trace(Trace.FINER, "Navigate: " + url); //$NON-NLS-1$
if (url != null && url.equals(getURL())) {
refresh();
return true;
}
if (browser!=null)
return browser.setUrl(url, null, new String[] {"Cache-Control:
no-cache"}); //$NON-NLS-1$
return text.setUrl(url);
}
{code}
It doesn't refresh since it's a brand new request in a new editor. But it does
travel into Mozilla.class which seems to return the old cached data somehow, though the
code there looks like it's making a fresh request.
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
Affects Versions: 4.2.0.CR2
Reporter: Martin Malina
Assignee: Rob Stryker
Fix For: 4.2.1.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.1#6329)