Jeff Walden
964550bb3e
Bug 1552979 - Make JS::CompileModule return the module directly, rather than by outparam duplicative of a boolean return value. r=arai
...
--HG--
extra : rebase_source : e5db95557dd8c1c3712395a0141badd6e8edbc8e
2019-05-21 10:21:56 -07:00
Christoph Kerschbaumer
b633427366
Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D27654
--HG--
extra : moz-landing-system : lando
2019-05-21 23:14:27 +00:00
Jeff Walden
1e8a4f44fd
Bug 1553001 - Move module APIs out of jsapi.{cpp,h} into js/public/Modules.h and js/src/vm/Modules.cpp for better isolation of module-related APIs. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D31917
--HG--
rename : js/src/jsapi.h => js/public/Modules.h
rename : js/src/jsapi.cpp => js/src/vm/Modules.cpp
extra : moz-landing-system : lando
2019-05-21 00:57:38 +00:00
Christoph Kerschbaumer
20040f196d
Bug 1551379: Allow non linkable about: pages to skip CORS when loading local module scripts. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D31514
--HG--
extra : moz-landing-system : lando
2019-05-20 15:59:28 +00:00
Boris Zbarsky
89d6eb2831
Bug 325352 part 1. Align our "defined insertion point" concept more closely with the spec's "script nesting level" concept. r=hsivonen
...
This also exposes an accessor for whether the parser has a nonzero script nesting level.
Differential Revision: https://phabricator.services.mozilla.com/D30313
--HG--
extra : moz-landing-system : lando
2019-05-08 06:10:47 +00:00
Boris Zbarsky
6430c24e0a
Bug 1548625 part 2. Get rid of some ExposeObjectToActiveJS calls in DOM code. r=mccr8,jonco
...
The call in VRFrameData::LazyCreateMatrix is not needed because
aRetval.set(aArray) ends up calling into Heap::get() which does a read barrier
and exposes.
The call in nsXULPrototypeScript::Compile is not needed because initializing
the AutoJSAPI will guarantee that the global of the Realm it enters, which is
what we're examining here, will be exposed.
The call in Promise's CreateNativeHandlerFunction is not needed because the
object being passed in was always just-created into a stack Rooted.
The call in MIDIMessageEvent::GetData is not needed because it's always working
with a just-created object. Also, mData is a Heap, so there will be a read
barrier anyway before anyone gets at the value.
The call in PrototypeDocumentContentSink::ExecuteScript is not needed because
the AutoEntryScript will guarantee that the global of the Realm it enters is
exposed. And the JSAutoRealm is not needed either, because we're in that Realm
already.
Differential Revision: https://phabricator.services.mozilla.com/D29720
--HG--
extra : moz-landing-system : lando
2019-05-03 10:09:11 +00:00
Boris Zbarsky
517a6ebdd7
Bug 1547923 part 6. Make nsIGlobalObject::GetGlobalJSObject always expose to active JS. r=mccr8
...
See callsite audit in https://bugzilla.mozilla.org/attachment.cgi?id=9061976
for details on why the remaining GetGlobalJSObject callers should switch to the
"always expose" behavior.
Differential Revision: https://phabricator.services.mozilla.com/D29707
--HG--
extra : moz-landing-system : lando
2019-05-02 21:36:15 +00:00
Boris Zbarsky
356eb6dfd9
Bug 1547923 part 5. Start using nsIGlobalObject::GetGlobalJSObjectPreserveColor where possible. r=mccr8,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D29706
--HG--
extra : moz-landing-system : lando
2019-05-03 15:15:31 +00:00
Boris Zbarsky
ff72e84ac1
Bug 1547923 part 4. Add nsIGlobalObject::HasJSGlobal(). r=mccr8
...
Consumers that just care about this boolean state should use this instead of
getting the JSObject* directly.
Differential Revision: https://phabricator.services.mozilla.com/D29705
--HG--
extra : moz-landing-system : lando
2019-05-02 21:32:17 +00:00
Boris Zbarsky
248fcf067d
Bug 1547923 part 1. Remove unused callers of GetGlobalJSObject. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D29702
--HG--
extra : moz-landing-system : lando
2019-05-02 18:37:52 +00:00
Thomas Nguyen
b0bfbd85aa
Bug 1532318 - Part 2 : update changes of nsIHttpChannel in codebase r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D22786
--HG--
extra : moz-landing-system : lando
2019-05-02 12:33:55 +00:00
Andrea Marchesini
f50233ec54
Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.script_loader.bytecode_cache.strategy, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D29525
--HG--
extra : moz-landing-system : lando
2019-05-01 21:11:48 +00:00
Andrea Marchesini
da4c1080ef
Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.script_loader.bytecode_cache.enabled, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D29523
--HG--
extra : moz-landing-system : lando
2019-05-01 21:11:17 +00:00
Andrea Marchesini
4426f8f63b
Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - network.http.tailing.enabled, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D29520
--HG--
extra : moz-landing-system : lando
2019-05-01 21:10:31 +00:00
Dana Keeler
c90cfeaf74
bug 1441989 - remove ContentVerifier r=baku,mayhemer
...
ContentVerifier has been dead code since bug 1355166 (which, incidentally, means
it has no tests). Its presence is preventing improvements to
ContentSignatureVerifier (see e.g. bug 1534600), so this patch removes it.
As a result, the nsILoadInfo attributes verifySignedContent and enforceSRI are
also unused, so this patch removes those as well.
Differential Revision: https://phabricator.services.mozilla.com/D28885
--HG--
extra : moz-landing-system : lando
2019-04-26 22:21:36 +00:00
Brian Hackett
d5ff34f278
Bug 1543751 Part 2 - Include stack in worker error reports, r=bz.
...
--HG--
extra : rebase_source : def4f4f4203cb0905cde342d7f02fe4f101005f5
extra : histedit_source : 87179f28838b627a848605b54d0d64bb20dc0ca4
2019-04-15 13:46:05 -10:00
Boris Zbarsky
d0bcf72821
Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D27027
--HG--
extra : moz-landing-system : lando
2019-04-11 14:12:43 +00:00
Brian Hackett
5ece767b75
Bug 996060 Part 2 - Use JS engine stack if necessary when reporting errors, r=bz.
...
Differential Revision: https://phabricator.services.mozilla.com/D25645
--HG--
extra : rebase_source : c9cfe0d968bbe1d53e1eb1fc52433f88771d5faa
2019-04-01 12:17:43 -06:00
Jeff Walden
5327fe7f3e
Bug 1542120 - Add js/public/Warnings.h for warning-related JSAPI. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26273
--HG--
rename : js/src/jsapi.h => js/public/Warnings.h
extra : moz-landing-system : lando
2019-04-05 22:52:04 +00:00
Brian Hackett
b851bf262e
Bug 1535071 - Use the debugger global scope for worker error reporting if necessary, r=smaug,baku.
...
Differential Revision: https://phabricator.services.mozilla.com/D24270
--HG--
extra : moz-landing-system : lando
2019-03-25 09:26:48 +00:00
dlee
9878ae650d
Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
...
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.
Differential Revision: https://phabricator.services.mozilla.com/D22111
--HG--
extra : moz-landing-system : lando
2019-03-25 12:47:57 +00:00
Gurzau Raul
2666e16a53
Backed out 7 changesets (bug 1522412) for xpcshell failures at test_shouldclassify.js on a CLOSED TREE.
...
Backed out changeset 7c998456e1fd (bug 1522412)
Backed out changeset ebb581ddf1d1 (bug 1522412)
Backed out changeset 850e1c68d978 (bug 1522412)
Backed out changeset fe288a48cecb (bug 1522412)
Backed out changeset 5399bca472b1 (bug 1522412)
Backed out changeset 91e5b339fe11 (bug 1522412)
Backed out changeset b80098d0a5c4 (bug 1522412)
2019-03-21 11:02:09 +02:00
Dimi Lee
8f1caf4049
Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
...
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.
Differential Revision: https://phabricator.services.mozilla.com/D22111
--HG--
extra : moz-landing-system : lando
2019-03-21 07:30:51 +00:00
Sebastian Hengst
cee711baf9
Bug 1535353 - update Core :: DOM: * bugzilla product and component meta data in moz.build files after reorganization in bug 1533440 r=hsinyi
...
Differential Revision: https://phabricator.services.mozilla.com/D23546
--HG--
extra : moz-landing-system : lando
2019-03-17 23:13:22 +00:00
Andrea Marchesini
5bb6c49ba8
Bug 1535799 - nsIHttpChannel.isTrackingResource should be a method, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D23765
--HG--
extra : moz-landing-system : lando
2019-03-17 06:55:50 +00:00
Andrea Marchesini
61d20299f1
Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D22471
--HG--
extra : moz-landing-system : lando
2019-03-14 17:48:50 +00:00
Dorel Luca
3ef1df6038
Backed out 5 changesets (bug 1533074) for eslint failure
...
Backed out changeset 36c6a7178a5c (bug 1533074)
Backed out changeset 7e6a8fadff5b (bug 1533074)
Backed out changeset 2a0494fed543 (bug 1533074)
Backed out changeset 38470d2dd98c (bug 1533074)
Backed out changeset af4e03d1f5c8 (bug 1533074)
2019-03-14 09:14:15 +02:00
Andrea Marchesini
587086626b
Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D22471
--HG--
extra : moz-landing-system : lando
2019-03-14 06:32:40 +00:00
Luke Wagner
b15a5f46a8
Bug 1487113 - MOZ_RELEASE_ASSERT existing implicit assumption about alt-data Write() in ScriptLoader.cpp (r=baku)
2019-03-04 19:38:13 -06:00
Luke Wagner
80a840b62f
Bug 1487113 - Use CloseWithStatus in ScriptLoader.cpp to indicate failure (r=baku)
2019-03-04 19:35:41 -06:00
Ryan Hunt
00e98538aa
Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21106
--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Jan Beich
d07e11b5f7
Bug 1529480 - Unbreak --enable-warnings-as-errors without GeckoProfiler after bug 1515209. r=mstange
...
--HG--
extra : histedit_source : ec7ddc470325be4bc18c3b6af93f222b2237ff73
2019-02-23 12:00:28 +00:00
Cosmin Sabou
f3db52f4cf
Merge mozilla-inbound to mozilla-central. a=merge
2019-02-21 05:42:03 +02:00
Christoph Kerschbaumer
54df1cb98c
Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku
2019-02-20 13:27:25 +01:00
Andrea Marchesini
64d3f6f9da
Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20200
--HG--
extra : moz-landing-system : lando
2019-02-20 10:05:42 +00:00
Ciure Andrei
fe3f244555
Backed out 3 changesets (bug 1487113) for perma failing test_alt-data_stream_wrap.js CLOSED TREE
...
Backed out changeset 831ac8c662c0 (bug 1487113)
Backed out changeset a8406df01e95 (bug 1487113)
Backed out changeset 1e97c3573ce6 (bug 1487113)
2019-02-19 11:43:13 +02:00
Andrea Marchesini
52efd15b05
Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20200
--HG--
extra : moz-landing-system : lando
2019-02-19 07:38:31 +00:00
Markus Stange
0b151b8c2b
Bug 1500692 - Centralize profiling category definition and add infrastructure for subcategories. r=njn
...
The actual subcategories will be added in later patches, so that there are no
unused categories.
Differential Revision: https://phabricator.services.mozilla.com/D11334
--HG--
extra : moz-landing-system : lando
2019-02-16 17:37:43 +00:00
Gurzau Raul
c1733291c0
Merge inbound to mozilla-central. a=merge
2019-02-14 19:01:42 +02:00
shindli
c6c323a9e4
Merge mozilla-central to inbound. a=merge CLOSED TREE
...
--HG--
extra : rebase_source : 4502430f7e773b654c4557946c39000735b14bb3
2019-02-14 06:58:32 +02:00
Christoph Kerschbaumer
d65faafb09
Bug 1509738: CSP snapshot nonce at load start time. r=baku
...
--HG--
extra : rebase_source : ea232b7a3aeae9c18895e885d1536ca58c8de1bd
extra : amend_source : b0c351f8c0c1a5eb7865a735f8dc5bafb42384f1
2019-02-13 20:45:29 +01:00
Markus Stange
59eaae38a1
Bug 1515209 - Add a text marker for <script> evaluation. r=gerald
...
Differential Revision: https://phabricator.services.mozilla.com/D19189
--HG--
extra : moz-landing-system : lando
2019-02-14 05:25:13 +00:00
Noemi Erli
0a63dd9be6
Backed out 2 changesets (bug 1509738) for failures in propagate-nonce-external-classic.html
...
Backed out changeset fbf4b73c8786 (bug 1509738)
Backed out changeset 53f624bc7c22 (bug 1509738)
2019-02-13 16:22:44 +02:00
Christoph Kerschbaumer
7859700e5d
Bug 1509738 - CSP snapshot nonce at load start time. r=baku
...
--HG--
extra : rebase_source : b532f519b79a3bc14ece0c0ee829edd400149e48
extra : amend_source : d4b8fba240a9d28437ee436b94313fd1602426c4
extra : histedit_source : 6af35eb388f6c23d80d8412533fec02abe2d4cff
2019-02-13 13:46:50 +01:00
Andreea Pavel
e09dd2a72d
Backed out 2 changesets (bug 1509738) for failing propagate-nonce-external-classic.html on a CLOSED TREE
...
Backed out changeset 5cbc3f79a126 (bug 1509738)
Backed out changeset 44a945b21f87 (bug 1509738)
2019-02-13 02:18:28 +02:00
Christoph Kerschbaumer
6111ccf5fd
Bug 1509738: CSP snapshot nonce at load start time r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D19519
--HG--
extra : moz-landing-system : lando
2019-02-12 18:01:32 +00:00
Jonathan Kingston
3421b8fcff
Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
...
Replacing js and text occurences of asyncOpen2
Replacing open2 with open
Differential Revision: https://phabricator.services.mozilla.com/D16885
--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
Jon Coppeard
019d226699
Bug 1525627 - Report an error if there's no ScriptLoader for the current context. r=baku
2019-02-08 09:16:00 +02:00
Tom Schuster
a60d06b5ef
Bug 1525006 - Add a new internal ContentPolicyType for ES6 modules. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D19269
--HG--
extra : moz-landing-system : lando
2019-02-12 13:16:32 +00:00
Sylvestre Ledru
14486004b6
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D18488
--HG--
extra : moz-landing-system : lando
2019-02-04 19:10:18 +00:00