Kannan Vijayan
c690c1925f
Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D39378
2019-07-26 16:48:31 +00:00
Nicholas Nethercote
c4aacd8403
Bug 1563139 - Remove StaticPrefs.h. r=glandium
...
This requires replacing inclusions of it with inclusions of more specific prefs
files.
The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.
Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.
Differential Revision: https://phabricator.services.mozilla.com/D39138
2019-07-26 01:10:23 +00:00
Karl Tomlinson
6d914f0b98
Bug 1542931 add CycleCollectedJSContext::ReportError() r=baku
...
to make AutoJSAPI error reporting safe for worklets.
Parameter order matches xpc::ErrorReport::Init().
Depends on D34477
Differential Revision: https://phabricator.services.mozilla.com/D34478
2019-06-12 19:11:04 +00:00
Jonathan Kingston
32524b62e2
Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35504
2019-07-08 16:37:45 +00:00
Jeff Walden
e7704e1d45
Bug 1559633 - Introduce a ScriptDecoding.h header containing templated decoding code for decoding script data as UTF-8 or UTF-16. r=bzbarsky
...
Depends on D36133
Differential Revision: https://phabricator.services.mozilla.com/D36134
2019-06-26 23:25:19 +00:00
Jeff Walden
338aa62605
Bug 1554362 - Accumulate external source text as either UTF-8 or UTF-16, in pref-controlled fashion, and then compile the accumulated text using corresponding JSAPI entrypoints without inflating UTF-8 to UTF-16. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34825
2019-06-15 20:48:40 +00:00
Jeff Walden
9a2fbd4e3e
Bug 1554362 - Adjust some obsolete or debatably-misplaced comments in ScriptLoadRequest.h. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34824
2019-06-15 20:48:28 +00:00
Jeff Walden
e3e50181b6
Bug 1554362 - Replace the two ScriptLoadHandler::EnsureDecoder overloads with one inline function that fast-paths the already-have-one test and an out-of-line function that tries to provide one presuming none exists. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34823
2019-06-15 20:48:12 +00:00
Jonathan Kingston
0687397300
Bug 1554294 - Adding in chrome as a supported scriptLoader IsInternalURIScheme and adding relative file paths to aboutlogins r=baku,jaws
...
Differential Revision: https://phabricator.services.mozilla.com/D34705
2019-06-14 14:28:05 +00:00
Gurzau Raul
c6e0911126
Backed out changeset 3ae87fbf60a5 (bug 1554294) for failing at browser_deleteLogin.js on a CLOSED TREE.
2019-06-14 14:49:03 +03:00
Jonathan Kingston
f88d254588
Bug 1554294 - Adding in chrome as a supported scriptLoader IsInternalURIScheme and adding relative file paths to aboutlogins r=baku,jaws
...
Differential Revision: https://phabricator.services.mozilla.com/D34705
2019-06-14 09:33:36 +00:00
Boris Zbarsky
8e16a497d9
Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D34201
2019-06-08 21:26:12 +00:00
Thomas Nguyen
5a46d126ce
Bug 1534681 Use ReferrerInfo class in document r=ckerschb,baku,Gijs
...
Also, in many place, we use document uri as referrer. It is not right
for the case srdoc iframe. We should use the last non-srdoc parent
document's uri
Differential Revision: https://phabricator.services.mozilla.com/D30191
2019-06-06 07:23:37 +00:00
Boris Zbarsky
eb5b30acbf
Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D33060
2019-06-01 02:29:26 +00:00
Jeff Walden
77654d5491
Bug 1553502 - Implement ScriptLoader::ConvertToUTF8. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D32255
2019-05-25 19:45:50 +00:00
Jeff Walden
93297395ae
Bug 1552979 - Make JS::CompileModule return the module directly, rather than by outparam duplicative of a boolean return value. r=arai
2019-05-21 10:21:56 -07:00
Christoph Kerschbaumer
29451e9f5e
Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D27654
2019-05-21 23:14:27 +00:00
Jeff Walden
fdfa2e2ea8
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
2019-05-21 00:57:38 +00:00
Christoph Kerschbaumer
358777d8c1
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
2019-05-20 15:59:28 +00:00
Boris Zbarsky
490a516cd4
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
2019-05-08 06:10:47 +00:00
Boris Zbarsky
e5b6d42bd2
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
2019-05-03 10:09:11 +00:00
Boris Zbarsky
ed7925a057
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
2019-05-02 21:36:15 +00:00
Boris Zbarsky
204bfb5dd2
Bug 1547923 part 5. Start using nsIGlobalObject::GetGlobalJSObjectPreserveColor where possible. r=mccr8,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D29706
2019-05-03 15:15:31 +00:00
Boris Zbarsky
bc3d6e1282
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
2019-05-02 21:32:17 +00:00
Boris Zbarsky
2ee7a4c853
Bug 1547923 part 1. Remove unused callers of GetGlobalJSObject. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D29702
2019-05-02 18:37:52 +00:00
Thomas Nguyen
2b9a6d0f8d
Bug 1532318 - Part 2 : update changes of nsIHttpChannel in codebase r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D22786
2019-05-02 12:33:55 +00:00
Andrea Marchesini
57beb75181
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
2019-05-01 21:11:48 +00:00
Andrea Marchesini
02dd724e4f
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
2019-05-01 21:11:17 +00:00
Andrea Marchesini
365d1f89e5
Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - network.http.tailing.enabled, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D29520
2019-05-01 21:10:31 +00:00
Dana Keeler
cef30abebf
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
2019-04-26 22:21:36 +00:00
Brian Hackett
818d284879
Bug 1543751 Part 2 - Include stack in worker error reports, r=bz.
2019-04-15 13:46:05 -10:00
Boris Zbarsky
f84e5421de
Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D27027
2019-04-11 14:12:43 +00:00
Brian Hackett
147960477e
Bug 996060 Part 2 - Use JS engine stack if necessary when reporting errors, r=bz.
...
Differential Revision: https://phabricator.services.mozilla.com/D25645
2019-04-01 12:17:43 -06:00
Jeff Walden
9a71a44ca4
Bug 1542120 - Add js/public/Warnings.h for warning-related JSAPI. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26273
2019-04-05 22:52:04 +00:00
Brian Hackett
fb9c24359c
Bug 1535071 - Use the debugger global scope for worker error reporting if necessary, r=smaug,baku.
...
Differential Revision: https://phabricator.services.mozilla.com/D24270
2019-03-25 09:26:48 +00:00
dlee
3b26e613f7
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
2019-03-25 12:47:57 +00:00
Gurzau Raul
8cd94b1658
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
2aec02089a
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
2019-03-21 07:30:51 +00:00
Sebastian Hengst
1e32ee6431
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
2019-03-17 23:13:22 +00:00
Andrea Marchesini
bab3563e61
Bug 1535799 - nsIHttpChannel.isTrackingResource should be a method, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D23765
2019-03-17 06:55:50 +00:00
Andrea Marchesini
52ec51612e
Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D22471
2019-03-14 17:48:50 +00:00
Dorel Luca
16206f7e66
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
3adf0eaa08
Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D22471
2019-03-14 06:32:40 +00:00
Luke Wagner
edc2fc2a60
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
aae0af68d6
Bug 1487113 - Use CloseWithStatus in ScriptLoader.cpp to indicate failure (r=baku)
2019-03-04 19:35:41 -06:00
Ryan Hunt
ad7b7dbb30
Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21106
2019-02-25 16:05:29 -06:00
Jan Beich
909d6a9723
Bug 1529480 - Unbreak --enable-warnings-as-errors without GeckoProfiler after bug 1515209. r=mstange
2019-02-23 12:00:28 +00:00
Cosmin Sabou
99989bdc66
Merge mozilla-inbound to mozilla-central. a=merge
2019-02-21 05:42:03 +02:00
Christoph Kerschbaumer
1a72eb2a6b
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
d34f163c27
Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20200
2019-02-20 10:05:42 +00:00