gecko-dev/docshell/test/chrome
Kris Maglione 773d32e9fe Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan
Loading SpecialPowers into frame scripts has side-effects, detailed in part 1,
which are undesirable. The main side-effect that I'm trying to get rid of here
is the force-enabling of permissive COWs in frame script scopes, which is
blocking changes that I need to make elsewhere. But both that and the scope
pollution it causes are likely to allow code to work when running in
automation which fails in real world usage.

This patch changes our special powers frame scripts to load specialpowers.js
and specialpowersAPI.js as JSMs, which run in their own global, but define
most of the same properties on our frame script globals.

Most other callers still load those scripts via <script> tags or the subscript
loader, and should ideally migrated in a follow-up. But even so, this patch
still gives us a cleaner separation of the frame script and non-frame-script
loading code.

MozReview-Commit-ID: CR226gCDaGY

--HG--
extra : rebase_source : 251574d238ded31b9df32dc89852251831d55757
extra : source : c53c7b0249ad3359fbc9f144f2cf9ca3b6386c59
2018-08-07 14:03:21 -07:00
..
89419.html
92598_nostore.html
92598_nostore.html^headers^
112564_nocache.html
112564_nocache.html^headers^
215405_nocache.html
215405_nocache.html^headers^
215405_nostore.html
215405_nostore.html^headers^
582176_dummy.html
582176_xml.xml
582176_xslt.xsl
662200a.html
662200b.html
662200c.html
allowContentRetargeting.sjs Bug 906276 - Add attribute to nsIDocShell to disable content retargeting. r=jlebar, sr=biesinger 2013-08-24 01:10:50 -07:00
blue.png
bug89419.sjs
bug89419_window.xul Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan 2018-08-07 14:03:21 -07:00
bug92598_window.xul Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
bug112564_window.xul Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
bug113934_window.xul Bug 1217315 - Remove for-each from docshell/. r=smaug 2015-10-19 01:37:26 +09:00
bug215405_window.xul Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
bug293235.html
bug293235_p2.html
bug293235_window.xul Bug 1419704 - Remove nsIGlobalHistory2 and docshell's nsDownloadHistory as they are redundant. r=mak,bzbarsky 2018-07-04 09:59:45 +00:00
bug294258_testcase.html
bug294258_window.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
bug298622_window.xul Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
bug301397_1.html
bug301397_2.html
bug301397_3.html
bug301397_4.html
bug301397_window.xul Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
bug303267.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
bug303267_window.xul Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
bug311007_window.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
bug321671_window.xul Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
bug360511_case1.html
bug360511_case2.html
bug360511_window.xul Bug 1363829 P9 Make docshell chrome tests wait for next paint to avoid races. r=smaug 2017-05-31 17:13:19 -07:00
bug364461_window.xul Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
bug396519_window.xul Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
bug396649_window.xul Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
bug449778_window.xul Bug 1217315 - Remove for-each from docshell/. r=smaug 2015-10-19 01:37:26 +09:00
bug449780_window.xul Bug 1321217 - Remove legacy generator from docshell/. r=smaug 2016-12-01 18:04:50 +09:00
bug454235-subframe.xul
bug582176_window.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
bug608669.xul Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug 2017-09-05 16:02:04 +08:00
bug662200_window.xul Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
bug690056_window.xul Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
bug846906.html Bug 846906 - Implement nsAppShellService::CreateWindowlessBrowser; r=bz; sr=benjamin 2013-04-04 15:24:32 +02:00
bug909218.html Bug 909218 - test defaultLoadFlags make it to all requests. r=mayhemer 2013-09-06 16:33:29 +10:00
bug909218.js Bug 909218 - test defaultLoadFlags make it to all requests. r=mayhemer 2013-09-06 16:33:29 +10:00
chrome.ini Bug 1278282 - Update of the tests to reflect the removal of the gtk2 r=lsalzman 2018-01-10 08:55:38 +01:00
docshell_helpers.js Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
file_viewsource_forbidden_in_iframe.html Bug 624883 - Tests for ensuring that view-source is forbidden in iframes. r=bz 2014-01-23 16:02:10 +00:00
gen_template.pl Bug 1089446 - Improve the comments in both gen_template.pl scripts. r=bz. 2014-10-28 15:04:03 -07:00
generic.html
mozFrameType_window.xul Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
red.png
test.template.txt
test_allowContentRetargeting.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_bug89419.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug92598.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug112564.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug113934.xul
test_bug215405.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug293235.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug294258.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug298622.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug301397.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug303267.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug311007.xul Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8 2017-04-12 11:10:00 +01:00
test_bug321671.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug360511.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug364461.xul Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
test_bug396519.xul
test_bug396649.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug428288.html
test_bug449778.xul
test_bug449780.xul
test_bug453650.xul Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku 2018-02-12 11:39:41 -06:00
test_bug454235.xul
test_bug456980.xul Bug 939719 - stop packaging tests.jar up during a build. r=ted 2013-11-18 13:38:37 -05:00
test_bug565388.xul Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag 2018-08-03 00:05:07 +00:00
test_bug582176.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug608669.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug662200.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_bug690056.xul
test_bug789773.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug846906.xul Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag 2018-08-03 00:05:07 +00:00
test_bug909218.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_docRedirect.sjs Add a new flag to nsIWebProgressListener for redirects (bug 1342989). r=smaug 2017-04-01 20:07:47 +03:00
test_docRedirect.xul Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag 2018-08-03 00:05:07 +00:00
test_mozFrameType.xul Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
test_principalInherit.xul Bug 1383011 : rewrite test_principalInherit.xul. r=smaug 2017-07-24 10:01:51 +08:00
test_private_hidden_window.html Bug 1463291: Move docShell getter from Document to Window. r=bz 2018-05-21 16:58:23 -07:00
test_viewsource_forbidden_in_iframe.xul Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
window.template.txt Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00