Bug 518100

Summary: Method to obtain current URL from WebBrowserEditor
Product: [Eclipse Project] Platform Reporter: Kentarou Fukuda <kentarou>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, Lars.Vogel, Vikas.Chandra
Version: 4.7Keywords: api, helpwanted, investigate
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Kentarou Fukuda CLA 2017-06-11 11:34:14 EDT
To evaluate an accessibility of Web page that opened in WebBrowserEditor, we would like to obtain current URL from WebBrowserEditor. However, it seems that there is no public API that can access to current URL from WebBrowserEditor.

By using internal class, we can get URL from WebBrowserEditorInput. Unfortunately, however, WebBrowserEditorInput keeps initial URL that was used to open WebBrowserEditor. So, even by using internal class, we can't get the URL that currently opened in WebBrowserEditor after users' navigation by using address bar of WebBrowserEditor.

Would you please add some public API to obtain current URL from WebBrowserEditor, or would you please let us know a way to get it by existing APIs?

Thanks.
Comment 1 Lars Vogel CLA 2018-07-04 16:47:59 EDT
Gerrit patch welcome. I would also like to see this API used, e.g., by adding an entry to the context menu ("Copy URL to clipboard"). Currently the context menu shows: Back, Forward, Stop, Reload.

Kentarou, can you provide a Gerrit?