Commit Graph
123 Commits
Author SHA1 Message Date
Boris Zbarsky b438a3bd36 Bug 1107592 part 2. Allow chrome JS to directly throw content DOMExceptions that will propagate out to the web script. r=peterv 2015-01-02 17:08:33 -05:00
Gabor Krizsanits a75febb214 Bug 1081038 - part2: Removing nsAutoMicroTask where we have AutoEntryScript. r=bholley 2014-11-14 16:46:26 +01:00
Carsten "Tomcat" Book 5e52e24113 Backed out changeset 9243c59c3e56 (bug 1081038) 2014-11-13 11:48:00 +01:00
Gabor Krizsanits 6eaf9f4cb9 Bug 1081038 - part 2: Removing nsAutoMicroTask where we have AutoEntryScript. r=bholley 2014-11-13 09:50:15 +01:00
Bobby Holley 8ff0a8449b Bug 1070696 - Rename xpc::GetNativeForGlobal to xpc::NativeGlobal and make it accept non-global JSObjects. r=smaug
The method is infallible, and making the callers invoke
js::GetGlobalForObjectCrossCompartment manually is dumb.
2014-09-21 21:31:53 +02:00
Bobby Holley b2b763cb29 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen df43fcf12d Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley 10dec58cfc Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Seth Fowler ea2c64d748 Bug 913586 (Part 4) - Update Maybe users in dom. r=bz 2014-08-13 15:39:41 -07:00
Boris Zbarsky a90f9e668f Bug 1019149. For calls into JS-implemented WebIDL, don't check whether it's OK to run the script (it is) and whether the script lives in a window (it doesn't). r=bholley 2014-06-03 11:38:37 -04:00
Boris Zbarsky 246836714b Bug 1019091. Do less work in the CallSetup destructor when we have no exception. r=bholley 2014-06-03 11:38:37 -04:00
Terrence Cole d0ab3e3410 Bug 1013531 - Clarify the naming of the rooting analysis supression guards; r=sfink 2014-05-28 17:34:36 -07:00
Ryan VanderMeulen 02a1779237 Backed out changeset 0d61bcf08362 (bug 1013531) for bustage.
CLOSED TREE
2014-05-29 13:26:55 -04:00
Terrence Cole 3756031f7e Bug 1013531 - Clarify the naming of the rooting analysis supression guards; r=sfink 2014-05-28 17:34:36 -07:00
Nick Lebedev 73bcee2ac4 Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley 2014-05-13 11:58:00 +02:00
Boris Zbarsky 7cd57a86a4 Bug 978618. Fix error reporting for unintended XPConnect exceptions thrown by JS-implemented webidl to actually work correctly. r=bholley 2014-03-05 08:32:27 -05:00
Bobby Holley 923c529636 Bug 975419 - Trace the Incumbent Global from a CallbackObject (but check it too, just to be safe). r=bz,mccr8 2014-03-03 08:53:42 -08:00
Bobby Holley 726a217158 Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 22:36:44 -08:00
Phil Ringnalda e9a6a87759 Back out 4fc776ee6852:6a0ebe4ddd01 (bug 968335) and e7d697004921 (bug 923904) for b2g emulator build bustage
CLOSED TREE
2014-02-14 18:35:30 -08:00
Bobby Holley dc70024a38 Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 16:13:38 -08:00
Olli Pettay e54cf65be2 Bug 963285 - CallSetup may set context options but not restore them , r=bz 2014-01-24 00:56:50 +02:00
Terrence Cole 88f7b71c52 Bug 955660 - Fix an exact rooting hazard in CallSetup; r=bz 2013-12-31 08:30:57 -08:00
Steve Fink e633294ba4 Backed out changeset f71e6905567f (bug 952688) 2013-12-20 16:46:31 -08:00
Steve Fink 20eec334f3 Bug 952688 - Root CallbackObject's CallSetup around GlobalScope() call, r=terrence 2013-12-20 16:07:00 -08:00
Bobby Holley 4591293bc0 Bug 950909 - Forward native aggregation to the root XPCWrappedJS. r=mccr8,sr=smaug 2013-12-19 18:08:07 -08:00
Bobby Holley 3d665e01ac Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-11 17:51:58 -08:00
Bobby Holley c3a450ec6c Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-11 17:51:57 -08:00
Bobby Holley 702aa30e76 Bug 937317 - Factor out the shareable parts of CallSetup into AutoEntryScript and AutoIncubentScript. r=bz 2013-12-11 17:51:57 -08:00
Phil Ringnalda 52ab05db1f Back out 35371620801a:bf2019278b77 (bug 937317) for gaia-ui-test bustage and frequent timeouts in its own test 2013-12-07 11:08:56 -08:00
Bobby Holley 6633eddfa0 Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-06 12:01:42 -08:00
Bobby Holley 77a7c0d5ed Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-06 12:01:42 -08:00
Bobby Holley c4062515ad Bug 937317 - Factor out the shareable parts of CallSetup into AutoEntryScript and AutoIncubentScript. r=bz 2013-12-06 12:01:41 -08:00
Carsten "Tomcat" Book 97cdb39d20 Backed out changeset f65970fe598f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:48 +01:00
Carsten "Tomcat" Book c85c537ac9 Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book d77f8de83e Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:41:59 +01:00
Bobby Holley 73246443e6 Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-05 21:34:17 -08:00
Bobby Holley ed3b556916 Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-05 21:34:17 -08:00
Bobby Holley 048c9d0242 Bug 937317 - Factor out the shareable parts of CallSetup into AutoEntryScript and AutoIncubentScript. r=bz 2013-12-05 21:34:16 -08:00
Olli Pettay 77657dfcaf Additional fix for Bug 943613, r=bz 2013-11-27 18:21:00 +02:00
Olli Pettay eef429875c Bug 943613 - Notify JS implemented Event Target when an event listener is added / removed, r=bz 2013-11-27 17:22:16 +02:00
Boris Zbarsky 884da06296 Bug 941437 part 2. Remove the unused cx argument from UNWRAP_OBJECT and UNWRAP_WORKER_OBJECT. r=smaug 2013-11-21 07:51:16 -05:00
Bobby Holley 945c311361 Bug 939166 - Stop going through nsIScriptGlobalObject in CallSetup. r=bz 2013-11-20 08:48:00 -08:00
Bobby Holley a6615864ec Bug 840488 - Remove CheckFunctionAccess. r=bz
\o/

Aside from checking whether script is enabled, all the other work this function
does is silly.
2013-11-12 16:43:32 -08:00
Eddy Bruel 24119313fa Bug 880330 - Refactor dom to use the new options API (2/2); r=khuey 2013-10-28 12:51:05 +01:00
Jon Coppeard fe4c993691 Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Nikhil Marathe 3c34f48478 Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey 2013-09-09 14:58:29 -07:00
Kyle Huey 8313139111 Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Peter Van der Beken d92c45e00d Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object. r=bz. 2013-09-03 14:01:53 +02:00
Bobby Holley 3640d355fe Bug 903212 - Remove ScriptEvaluated, and simplify callers. r=mrbkap 2013-08-14 14:00:03 -07:00
Mike Hommey 0dc9c0ef85 Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00