Closed Bug 1701668 Opened 4 years ago Closed 4 years ago

Remove nsIWebBrowserChrome3 interface

Categories

(Core :: DOM: Navigation, task, P2)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: enndeakin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

The SSB feature was removed by bug 1682593. This gives an opportunity to reduce and eliminate the nsIWebBrowserChrome3 interface:

  • all of the implementations of shouldLoadURI and shouldLoadURIInThisProcess do nothing except return true.
  • all of the implementations of onBeforeLinkTraversal do the same thing except ext-browser-content.js which checks the appTab state on the docshell instead. This appears to be so that links in sidebars open in new tabs (bug 1392210), but I think we can just use the group for this.

I think the patches here fix bug 1397820. My understanding is that the expected behaviour is that links to other domains from sidebars should open in a new tab, whether in the top-level frame in the sidebar or in subframes. This should also happen for pinned tabs (bug 1396988) but I don't fix that here.

Blocks: 1397820, 1533950
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED

This also fixes links in top or in-process subframes and out-of-process subframes in extensions sidebars and panels so that they open in new tabs.

Depends on D110101

Depends on D110102

Severity: -- → N/A
Priority: -- → P2
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/abf5af44055d remove shouldLoadURI and shouldLoadURIInThisProcess methods now that all implementers return true, r=kmag https://hg.mozilla.org/integration/autoland/rev/da0d62a0534b remove onBeforeLinkTraversal implementations and handle links in docshell, r=kmag,mixedpuppy,geckoview-reviewers,agi https://hg.mozilla.org/integration/autoland/rev/de070731df26 remove nsIWebBrowserChrome3 interface, r=kmag https://hg.mozilla.org/integration/autoland/rev/ad3936fb3593 remove WebBrowserChromeChild actor, r=agi
Regressions: 1703437
No longer regressions: 1703437
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: