Jan de Mooij
d227b4369d
Bug 722345 part 3 - Remove request API. r=luke
...
Differential Revision: https://phabricator.services.mozilla.com/D4424
2018-08-28 09:53:30 +02:00
Jan de Mooij
cf6c255f8c
Bug 1267297 - Use AutoEntryScript for script activity bookkeeping instead of the request machinery. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D4085
2018-09-04 16:59:56 +00:00
Jeff Walden
c5cf4f39a4
Bug 1040316 - Move AutoStableStringChars out of friendapi into public API. r=jandem
2018-08-20 07:44:44 -07:00
Steve Fink
67f47fa2d6
Bug 1480835 - Remove now-redundant assertion that is a rooting hazard, r=jandem
2018-08-03 10:25:49 -07:00
Jan de Mooij
a760e2d0e5
Bug 1479363 part 5 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in remaining dom/ directories. r=mccr8
2018-08-02 08:49:00 +02:00
Jan de Mooij
fddc23c346
Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke
2018-07-28 12:12:26 +02:00
Jan de Mooij
41e091b454
Bug 1474540 - Assert we don't pass cross-compartment wrappers to AutoJSAPI::Init. r=bholley
2018-07-24 09:19:25 +02:00
Jan de Mooij
89f1b83309
Bug 1474541 part 2 - Assert we don't pass cross-compartment wrappers to AutoEntryScript. r=bz
2018-07-25 10:42:40 +02:00
Csoregi Natalia
c8dab51568
Backed out changeset 438598073b9b (bug 1474540) for assertion failure at ScriptSettings.cpp:493 on Android. CLOSED TREE
2018-07-24 11:34:09 +03:00
Jan de Mooij
029c024bc1
Bug 1474540 - Assert we don't pass cross-compartment wrappers to AutoJSAPI::Init. r=bholley
2018-07-24 09:19:25 +02:00
Jan de Mooij
6248eac269
Bug 1475559 part 5 - Pass a global object to nsScriptErrorWithStack. r=bz
...
The stack object might be a CCW and we want to make it impossible to get a CCW's global. Now the caller has to supply a same-compartment global object, so we no longer rely on getting the CCW's global.
2018-07-21 14:34:37 +02:00
Nazım Can Altınova
0da03b961d
Bug 1475006 - Remove mAutoProfilerLabel from AutoEntryScript in non-MOZ_GECKO_PROFILER builds r=mstange
...
MozReview-Commit-ID: 66mZK4q2ATK
2018-07-12 11:01:08 +02:00
Jan de Mooij
eed62d47cd
Bug 1473865 part 4 - Use xpc::WindowOrNull instead of xpc::WindowGlobalOrNull in a few places. r=bz
2018-07-12 16:17:44 +02:00
Jan de Mooij
641ab963ad
Bug 1474273 - Add xpc::CurrentNativeGlobal and use it instead of NativeGlobal(JS::CurrentGlobalOrNull(cx)). r=bz
2018-07-11 14:07:02 +02:00
Nazım Can Altınova
1eff5d1250
Bug 1473303 - Add a AutoProfilerLabel member to AutoEntryScript class to add a label frame for evaluating scripts r=bz
...
MozReview-Commit-ID: CqfO7r7JoPS
2018-07-04 15:35:07 +02:00
Jan de Mooij
0958ec3f9e
Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke
2018-05-31 11:28:48 +02:00
Jan de Mooij
8ee2a9f7b2
Bug 1461292 part 2 - Rename JSAutoNullableCompartment to JSAutoNullableRealm. r=bz
2018-05-16 10:53:45 +02:00
Jan de Mooij
e5f8a28c84
Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke
2018-05-16 10:53:16 +02:00
Karl Tomlinson
1cd498ec42
bug 1328964 use nsContentUtils::GetCurrentJSContext() on all threads r=smaug
...
nsContentUtils::GetCurrentJSContextForThread() originally needed to use
workers::GetCurrentThreadJSContext() in
https://hg.mozilla.org/mozilla-central/rev/366a45b41539#l2.18
because CycleCollectedJS*()->Context() did not exist until
https://hg.mozilla.org/mozilla-central/rev/1a0cd542e1e9#l7.12
nsContentUtils::GetCurrentJSContext() is thread-safe since these changes:
https://hg.mozilla.org/mozilla-central/rev/e636c7186286#l3.12
https://hg.mozilla.org/mozilla-central/rev/c8029c072776#l2.12
MozReview-Commit-ID: 2f1eGS9uBBO
2018-04-09 12:11:18 +12:00
Kris Maglione
3de3eddddb
Bug 1445551: Part 4 - Remove compartment-per-addon. r=mccr8
...
The compartment-per-addon code was added so that we could segregate at least
some of the code from system-privileged add-ons into tagged compartments, even
when it ran in browser windows. That allowed us to apply certain special
behavior to them, such as enabling e10s shims, and to track some performance
characteristics.
The only remaining chrome-privileged add-ons now are system add-ons controlled
by us, and the shim system and per-compartment performance metrics are gone,
it no longer serves a purpose.
MozReview-Commit-ID: Ap186bWAaqP
2018-03-13 19:43:30 -07:00
Olli Pettay
8d2a7b0ad2
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Csoregi Natalia
a7fb1721fe
Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
...
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Olli Pettay
6a1afb366a
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Andrea Marchesini
ddb4518ad1
Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly
2018-02-05 19:55:07 +01:00
Andrea Marchesini
3e08265e73
Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug
2018-01-31 08:25:30 +01:00
Andrea Marchesini
5e357eed9f
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Nika Layzell
d8c117bc28
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Olli Pettay
92ed8c0fda
Bug 1378092 - Consider to remove MaybeGC from AutoEntryScript::~AutoEntryScript(), r=jonco
2017-09-07 09:28:25 +01:00
Andrea Marchesini
d4f5a2f5ea
Bug 1362119 - part 2 - Fixing the code style in dom/script, r=ehsan
2017-05-08 08:25:03 +02:00
Andrea Marchesini
80bc31371c
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
2017-05-08 08:24:22 +02:00
Carsten "Tomcat" Book
c4daf63d34
Backed out changeset 5d77f6b14633 (bug 1362119) for android bustage in nsCCUncollectableMarker.cpp:500:7: error: 'TraceScriptHolder' is not a member of 'mozilla'
2017-05-08 09:54:38 +02:00
Carsten "Tomcat" Book
6f191c4573
Backed out changeset 30104bffcd4b (bug 1362119)
2017-05-08 09:54:06 +02:00
Andrea Marchesini
706d43b773
Bug 1362119 - part 2 - Fixing the code style in dom/script, r=ehsan
2017-05-08 08:25:03 +02:00
Andrea Marchesini
71aba8e0ee
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
2017-05-08 08:24:22 +02:00