Closed Bug 1616716 Opened 5 years ago Closed 5 years ago

Don't use BrowserParent* in DocumentLoadListener

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(6 files)

We currently pass a BrowserParent for DocumentLoadListener, but for in-process <iframes> this will be the PBrowser for the top-level document. For OOP <iframes> it'll be the PBrowser for the <iframe> itself.

We use this to pass into the external helper app, which is used for finding a window to create a dialog on, and for closing if necessary.

We also use it for ParentChannelListener, and use it to implement a bunch of interfaces for remote tabs.

I think most of these would be better to use BrowsingContext* directly.

We want to be able to initiate loads with DocumentLoadListener before the content process is created, so we need to avoid depending on BrowserParent.

Assignee: nobody → matt.woodrow
Status: NEW → ASSIGNED
Pushed by mwoodrow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/156d2898edb7 Don't forward ParentChannelListener QIs to BrowserParent for interfaces it doesn't implement. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/35186917e79a Implement nsIAuthPromptProvider on ParentChannelListener. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/0174164a21e5 Use BrowsingContext for most ParentChannelListener QIs. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/a0e842d96cd6 Implement nsIRemoteWindowContext on ParentChannelListener. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/9e61658c1778 Remove BrowserParent from ParentChannelListener entirely. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/609cbe8b736e Remove BrowserParent from DocumentLoadListener. r=nika
Pushed by mwoodrow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7992c5827a5f Don't forward ParentChannelListener QIs to BrowserParent for interfaces it doesn't implement. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/3071656d0612 Implement nsIAuthPromptProvider on ParentChannelListener. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/ce7650da6340 Use BrowsingContext for most ParentChannelListener QIs. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/eb3de57b60bc Implement nsIRemoteWindowContext on ParentChannelListener. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/ae03015ef6c8 Remove BrowserParent from ParentChannelListener entirely. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/4ba05100538e Remove BrowserParent from DocumentLoadListener. r=nika
Flags: needinfo?(matt.woodrow)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: