Andrea Marchesini
68207654f2
Bug 1343933 - Renaming Principal classes - part 1 - ExpandedPrincipal, r=qdot
...
--HG--
rename : caps/nsExpandedPrincipal.cpp => caps/ExpandedPrincipal.cpp
rename : caps/nsExpandedPrincipal.h => caps/ExpandedPrincipal.h
2017-03-22 11:38:17 +01:00
Boris Zbarsky
445459b942
Bug 1342513. Set up a scripted caller override in AutoEntryScript. r=bholley
...
Otherwise if we have no explicit incumbent script we can end up getting an
incumbent off the script stack _above_ the AutoEntryScript, which is wrong.
MozReview-Commit-ID: LG3540tgRQ
2017-02-28 12:41:35 -05:00
Boris Zbarsky
da2b77fe10
Bug 1318471. Get rid of IsCallerChrome calls in scriptsettings code. r=bholley
2016-11-18 16:13:07 -05:00
Tooru Fujisawa
6f9d4ca127
Bug 1283710 - Part 5: Rename message to toStringResult if it is the result of toString. r=bholley,jwalden,froydnj
2016-08-14 20:39:31 +09:00
Tooru Fujisawa
fa2f08828a
Bug 1283710 - Part 4: Do not duplicate message in ExpandErrorArgumentsVA, and remove message parameter from WarningReporter. r=jwalden
2016-08-14 20:39:31 +09:00
Wes Kocher
71f24926ed
Backed out 10 changesets (bug 1283710) for osx xpcshell failures a=backout
...
Backed out changeset eb95a12e5d86 (bug 1283710)
Backed out changeset f727edc4be48 (bug 1283710)
Backed out changeset fed60fbf645d (bug 1283710)
Backed out changeset 98339fa564f1 (bug 1283710)
Backed out changeset 51b8d69edca0 (bug 1283710)
Backed out changeset d72527b7d3c0 (bug 1283710)
Backed out changeset ee5215f1a38e (bug 1283710)
Backed out changeset dcedbaefe399 (bug 1283710)
Backed out changeset 61f8250cbe0b (bug 1283710)
Backed out changeset 239382846137 (bug 1283710)
2016-10-18 17:27:58 -07:00
Tooru Fujisawa
8d69b4f507
Bug 1283710 - Part 5: Rename message to toStringResult if it is the result of toString. r=bholley,jwalden,froydnj
2016-08-14 20:39:31 +09:00
Tooru Fujisawa
84473915d8
Bug 1283710 - Part 4: Do not duplicate message in ExpandErrorArgumentsVA, and remove message parameter from WarningReporter. r=jwalden
2016-08-14 20:39:31 +09:00
Cameron McCormack
58c32a9088
Bug 1309082 - Part 1: Extract image tracking from nsDocument into a separate, refcounted object. r=bholley
...
This is refcounted as we'll need to hold strong references to the ImageTracker
from style structs that load images.
MozReview-Commit-ID: 994gE9tOjAn
--HG--
extra : rebase_source : 2d50059e51b42251c89a92a954cef7b49720ceba
2016-10-13 15:04:15 +08:00
Jan de Mooij
a53986bf29
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
...
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Jan de Mooij
da9820d563
Bug 1292892 part 3 - Pass RootingContext to ScriptErrorEvent, DispatchScriptErrorEvent. r=bz
2016-08-11 14:39:22 +02:00
Jan de Mooij
5a6befce76
Bug 1292892 part 2 - Some RootingContext cleanup. r=bz,terrence
2016-08-11 14:39:22 +02:00
Jan de Mooij
0ad12515f4
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02:00
Olli Pettay
06c2ac8e59
Bug 1292699 - Add a small helper to deal with cases when native side needs to ensure that slow script dialog shows up, r=bholley
...
--HG--
extra : rebase_source : ab0fc332e5b54921d7a05e0c008c65b29947ee27
2016-08-08 23:29:05 +03:00
Boris Zbarsky
3f84f0b441
Bug 1289129. When setting up an AutoJSAPI with a global, make sure to expose that global to active JS. r=mccr8
2016-07-27 11:05:36 -04:00
Boris Zbarsky
0184b4df38
Bug 1282150 part 6. Get rid of GetSafeJSContext. r=bholley
2016-07-07 20:08:26 -04:00
Boris Zbarsky
d208b0de7a
Bug 1282150 part 3. Add a way to get the JSRuntime for the thread, and use it in various places for rooting. r=bholley
2016-07-07 20:08:26 -04:00
Boris Zbarsky
e990418707
Bug 1282150 part 2. Get rid of GetDefaultJSContextForThread. r=bholley
2016-07-07 20:08:26 -04:00
Boris Zbarsky
6542e6c3f0
Bug 1282150 part 1. Add a mozilla::dom::danger::GetJSContext API. r=bholley
2016-07-07 20:08:26 -04:00
Boris Zbarsky
eb139d85bf
Bug 1279313 part 1. Simplify AutoEntryScript to not make callers pass in a JSContext. r=bholley
2016-07-07 20:08:25 -04:00
Jan de Mooij
31f7512e9f
Bug 1283855 part 5 - Make warning reporter APIs take JSContext instead of JSRuntime. r=arai
2016-07-05 11:06:05 +02:00
Boris Zbarsky
9b1f1daa04
Bug 767938 part 10. Remove the now write-only XPCJSContextStack's actual stack of JSContexts and AutoCxPusher. r=bholley
2016-06-24 14:19:51 -04:00
Boris Zbarsky
cca4d3bf70
Bug 767938 part 9. Move the JSAutoRequest from AutoCxPusher to AutoJSAPI, because we're about to kill off AutoCxPusher. r=bholley
2016-06-24 14:19:51 -04:00
Boris Zbarsky
ad60b5c087
Bug 767938 part 7. Remove the now-debug-only uses of XPCJSContextStack::Peek and Count(). r=bholley
2016-06-24 14:19:50 -04:00
Boris Zbarsky
16f83caaad
Bug 767938 part 6. Get rid of XPConnect's GetCurrentJSContext getter. r=bholley
2016-06-24 14:19:50 -04:00
Boris Zbarsky
edb18fcfaf
Bug 767938 part 5. Stop using the JSContext stack to get the current JSContext. r=bholley
2016-06-24 14:19:50 -04:00
Boris Zbarsky
674ca7344c
Bug 767938 part 3. Make AutoJSAPI a ScriptSettingsStackEntry. r=bholley
2016-06-24 14:19:50 -04:00
Boris Zbarsky
e7805058b1
Bug 767938 part 2. Move control over pushing/popping ScriptSettingsStackEntry instances into subclasses, so we can do the conditional pushing/popping AutoJSAPI will need. r=bholley
2016-06-24 14:19:50 -04:00
Boris Zbarsky
78464e8e2a
Bug 767938 part 1. Change ScriptSettingsStackEntry to allow having stack entries that are neither candidates for being entry globals nor candidates for being incumbent globals. r=bholley
2016-06-24 14:19:50 -04:00
Boris Zbarsky
30a9fd5097
Bug 1276327. Remove the non-debug use of CxPusherIsStackTop(). r=bholley
2016-06-20 17:40:39 -04:00
Jan de Mooij
dad997a833
Bug 1277278 part 3 - Rename error reporter callback to warning reporter, assert it's only used for warnings. r=luke
...
--HG--
extra : rebase_source : ac1febc5220d649853f35c29de89a5e9ffb4fe98
2016-06-07 20:30:48 +02:00
Jan de Mooij
66faed38af
Bug 1277278 part 1 - Remove ContextOptions and make autoJSAPIOwnsErrorReporting the default. r=luke
...
--HG--
extra : rebase_source : aa1dcba100a3bb7a5057b07284cf4a99353afe5a
2016-06-07 20:30:48 +02:00
Boris Zbarsky
718461c894
Bug 1276276 part 5. Change AutoCxPusher to not worry about nsIScriptContext, since its JSContext never has one anymore. r=smaug
2016-06-02 10:34:40 -04:00
Boris Zbarsky
43a4676066
Bug 1276276 part 2. Change AutoEntryScript to always use the safe jscontext instead of trying to find a global-specific one. r=smaug
2016-06-02 10:34:39 -04:00
Boris Zbarsky
2385de9556
Bug 1276276 part 1. Make AutoJSAPI hold a strong ref to the nsIGlobalObject it's initialized with, so it won't go away while we're working with it. r=smaug
2016-06-02 10:34:39 -04:00
Boris Zbarsky
e9c3b988dd
Bug 1275999 part 4. Change XPCJSContextStack::Push to return void. r=bholley
2016-05-27 09:53:32 -04:00
Aryeh Gregor
585263dafa
Bug 1193762 part 4 - Avoid nsCOMPtr in ternary operator; r=froydnj
2016-05-01 21:29:22 +03:00
Olli Pettay
cc6d1d9827
Bug 1257096, don't try to report about unusual unhandled rejected Promises, r=bz,waldo
...
--HG--
extra : rebase_source : a53d6853feeae3c54f307cef71edcdba4f771803
2016-04-20 02:29:21 +03:00
Nathan Froyd
cccdd9fbca
Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
...
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-23 10:40:53 -04:00
Wes Kocher
ea76ed99d7
Backed out changeset 95494e68c722 (bug 1177488) for crashes in test_bug732665.xul CLOSED TREE
...
MozReview-Commit-ID: IFUHUBUCnCD
2016-03-25 12:11:48 -07:00
Nathan Froyd
418aa2af4f
Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
...
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-23 10:40:53 -04:00
Boris Zbarsky
e3b2de6aa9
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Boris Zbarsky
865750a216
Bug 1255817 part 1. Make AutoJSAPI always take ownership of error reporting. r=bholley
2016-03-23 11:44:54 -04:00
Boris Zbarsky
08a17f586c
Bug 1257725 part 6. Get rid of ThreadsafeAutoJSContext. r=bholley
2016-03-23 11:02:57 -04:00
Boris Zbarsky
770278cde1
Bug 1257306. Simplify the implementation of AutoSafeJSContext (and therefore AutoJSContext, since AutoSafeJSContext will no longer be an AutoJSContext). r=bholley
2016-03-17 23:23:55 -04:00
Boris Zbarsky
73264695a7
Logging patch for bug 1256008. r=khuey
2016-03-15 17:25:53 -04:00
Boris Zbarsky
3ff438ab43
Bug 1256424. Get rid of ThreadsafeAutoSafeJSContext. r=bholley
2016-03-14 20:48:39 -04:00
Wes Kocher
168746512d
Backed out changeset ee3c99e6f676 (bug 1177488) for LeakSanitizer failures
...
MozReview-Commit-ID: FFfF4u2vOrS
--HG--
extra : rebase_source : 0c7f5e290b388b2f35837a5f757f2d962b973da3
2016-03-14 13:15:21 -07:00
Nathan Froyd
6b6c2a1fcd
Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
...
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-08 16:29:25 -05:00
Boris Zbarsky
58fe6d3754
Fix the asset for bug 1112920 to not touch uninitialized memory. Totally my fault, since I moved it above the mCx assignment, and now we have a CLOSED TREE.
2016-03-09 23:17:10 -05:00