Closed Bug 1483274 Opened 6 years ago Closed 6 years ago

Fold nsIRemoteBrowser into nsIBrowser

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(1 file)

Currently in XBL we have `browser` (which implements nsIBrowser) and `remote-browser` (which implements both nsIBrowser and nsIRemoteBrowser). We then dynamically switch which XBL binding is attached to a browser tag at runtime in the tabbrowser based on whether the tab should be remote or not. Custom Elements don't have the capability to switch which element is applied at runtime (since the definition is keyed on tag name). This means we'll likely want to support both the remote and non-remote implementation in one element definition, so having a single interface to implement will make that possible. I think this looks like: 1) Fold in the 2 properties from nsIRemoteBrowser into nsIBrowser 2) Expose `readonly attribute boolean isRemoteBrowser` which calls into the JS impl 3) Update the 2 callers that Qi into nsIRemoteBrowser to Qi to nsIBrowser and then check `isRemoteBrowser`
Update Qi calls for nsIRemoteBrowser to instead check isRemoteBrowser. This will allow a single element definition for both remote and non-remote browsers.
Attachment #8999979 - Attachment description: Bug 1483274 - Remove nsIRemoteBrowser and always use nsIBrowser → Bug 1483274 - Remove nsIRemoteBrowser and always use nsIBrowser;r=smaug
Comment on attachment 8999979 [details] Bug 1483274 - Remove nsIRemoteBrowser and always use nsIBrowser;r=smaug Setting review flag in bugzilla since the dashboard seems to have lost the phab review.
Attachment #8999979 - Flags: review?(bugs)
Comment on attachment 8999979 [details] Bug 1483274 - Remove nsIRemoteBrowser and always use nsIBrowser;r=smaug Olli Pettay [:smaug] has approved the revision.
Attachment #8999979 - Flags: review+
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Pushed by bgrinstead@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/92832d7ecc29 Remove nsIRemoteBrowser and always use nsIBrowser;r=smaug
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Blocks: 1492967
Component: DOM → DOM: Core & HTML
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: