gecko-dev/toolkit/components/windowcreator
Kris Maglione 22592538f5 Bug 1561015: Part 1 - Use BrowsingContext in window provider APIs. r=bzbarsky,mossop
This is the first step in making it possible to return remote WindowProxy
objects from window.open() and related APIs.

This patch also incidentally fixes a bug where getContentWindowOrOpenURI
returned the top-level browser window rather than the new content window when
passed OPEN_NEWWINDOW for the `aWhere` parameter. This was not the expected
behavior, and was a potentially major footgun for any new users who expected
to always get the content window for the URL they were loading, rather than
sometimes getting a chrome browser window instead.

For now, that case just returns null, which is only a minor footgun, rather
than the major one we had before.

Differential Revision: https://phabricator.services.mozilla.com/D35688

--HG--
extra : moz-landing-system : lando
2019-08-02 20:48:33 +00:00
..
test Bug 1566952: Part 2 - Update Fission failure annotations after skipping crashes. r=mccr8 2019-07-19 12:30:10 -07:00
tests/unit Bug 1561435 - Format toolkit/components/, a=automatic-formatting 2019-07-05 11:14:05 +02:00
moz.build Bug 1555850 - Get rid of nsIWindowCreator2, r=bzbarsky 2019-05-31 03:41:47 +00:00
nsIWindowCreator.idl Bug 1555850 - Get rid of nsIWindowCreator2, r=bzbarsky 2019-05-31 03:41:47 +00:00
nsIWindowProvider.idl Bug 1561015: Part 1 - Use BrowsingContext in window provider APIs. r=bzbarsky,mossop 2019-08-02 20:48:33 +00:00