Summary: | IWorkbenchBrowserSupport.AS_EDITOR ignored | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Thomas Mauch <thomas.mauch> |
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | Lars.Vogel, loskutov, twolf |
Version: | 4.22 | Keywords: | regression |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=577081 https://bugs.eclipse.org/bugs/show_bug.cgi?id=244047 |
||
Whiteboard: |
Description
Thomas Mauch
2022-02-14 08:51:09 EST
@Lars, could you please check, the regression is coming from bug 577081. Any news on this issue? It seeem to be a regression, so some timely feedback would be appreciated. Thanks Not really a regression. If I look at the code [1] of DefaultBrowserSupport.createBrowser(int, String, String, String), it seems to me that this never worked if a user changed the preference manually to EXTERNAL unless the browserId was the HELP_BROWSER_ID. Looks like there was never a way to force the use of the internal browser regardless of the preference (provided an internal browser is available at all). See also bug 244047 for some history. Note the Javadoc of IWorkbenchBrowserSupport.createBrowser(...): "If the user has chosen not to use the internal browser or it is not available on the current platform, an external browser will be used and all style parameters will be ignored." Now the preference default has been changed. A strict reading of this javadoc would mean that as long as the user doesn't touch that preference at all (and an internal browser is available), the style flags _should_ have an effect. But if he sets the preference to internal and then back to external, the style flags would be ignored. Which doesn't make much sense. Also, please note that AS_EDITOR is only a _hint_ according to its javadoc. Simply treating AS_EDITOR as an indication to use an internal browser even if the preference says EXTERNAL may re-introduce bug 244047. [1] https://git.eclipse.org/r/plugins/gitiles/platform/eclipse.platform.ui/+/aa2435ea3f8745bf499e4e6cda6521d72292a476/bundles/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/DefaultBrowserSupport.java#94 |