Commit Graph

64 Commits

Author SHA1 Message Date
Boris Zbarsky
867392e5ed 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
be72f937c7 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
9acd19f827 Bug 1013531 - Clarify the naming of the rooting analysis supression guards; r=sfink
--HG--
extra : rebase_source : 95229e907222dd7335f92ae13dd83f1065eabf58
2014-05-28 17:34:36 -07:00
Ryan VanderMeulen
f03df157ab Backed out changeset 0d61bcf08362 (bug 1013531) for bustage.
CLOSED TREE
2014-05-29 13:26:55 -04:00
Terrence Cole
3fa2f7f3ec Bug 1013531 - Clarify the naming of the rooting analysis supression guards; r=sfink
--HG--
extra : rebase_source : ce44e4a4428414a132eae7167c485ff366b1f0a6
2014-05-28 17:34:36 -07:00
Nick Lebedev
7d585aca9e 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
8e3650ebfc 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
2cce4d4de7 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
7df867acf9 Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 22:36:44 -08:00
Phil Ringnalda
f2630e3d05 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
7149c177ee Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 16:13:38 -08:00
Olli Pettay
636ad0c7ee Bug 963285 - CallSetup may set context options but not restore them , r=bz 2014-01-24 00:56:50 +02:00
Terrence Cole
6f2c10f6ac Bug 955660 - Fix an exact rooting hazard in CallSetup; r=bz 2013-12-31 08:30:57 -08:00
Steve Fink
fc23242cfe Backed out changeset f71e6905567f (bug 952688)
--HG--
extra : rebase_source : 8d66cb74d228fd4e34c72afab98132bf1d2ba549
2013-12-20 16:46:31 -08:00
Steve Fink
ea73add095 Bug 952688 - Root CallbackObject's CallSetup around GlobalScope() call, r=terrence 2013-12-20 16:07:00 -08:00
Bobby Holley
997fe3e13e Bug 950909 - Forward native aggregation to the root XPCWrappedJS. r=mccr8,sr=smaug 2013-12-19 18:08:07 -08:00
Bobby Holley
7f8af296c3 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
61de78ecb2 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
b0193d7cfc 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
d1ba8751f2 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
b548f86f52 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
9a98dbf586 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
d741772187 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
7ce9485f88 Backed out changeset f65970fe598f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:48 +01:00
Carsten "Tomcat" Book
4fb73f42d6 Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book
8797042644 Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:41:59 +01:00
Bobby Holley
2e847fca05 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
3cb3d78d8b 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
04c4f10a48 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
9a97a941a1 Additional fix for Bug 943613, r=bz
--HG--
extra : rebase_source : 5a635b26e6ee26d20de88f056136d4a3d0a8e0fe
2013-11-27 18:21:00 +02:00
Olli Pettay
5b2b222312 Bug 943613 - Notify JS implemented Event Target when an event listener is added / removed, r=bz
--HG--
extra : rebase_source : 3285e318ca454297f4a9f06c86e733ddf70f4cf8
2013-11-27 17:22:16 +02:00
Boris Zbarsky
a7501e7c35 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
86629121be Bug 939166 - Stop going through nsIScriptGlobalObject in CallSetup. r=bz 2013-11-20 08:48:00 -08:00
Bobby Holley
a0b4f0df4e 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
874a5f30e3 Bug 880330 - Refactor dom to use the new options API (2/2); r=khuey 2013-10-28 12:51:05 +01:00
Jon Coppeard
dffe7f475b Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Nikhil Marathe
5e1c3cf276 Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey 2013-09-09 14:58:29 -07:00
Kyle Huey
a53f6f80b6 Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Peter Van der Beken
ecb01ed68b 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
fae00b9013 Bug 903212 - Remove ScriptEvaluated, and simplify callers. r=mrbkap 2013-08-14 14:00:03 -07:00
Mike Hommey
ca80cd82ad Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00
Bobby Holley
3b1ff95f0f Bug 883450 - Re-order stuff in CallSetup so that we construct the RootedObject after the Push. r=bz 2013-06-20 11:05:34 -07:00
Bobby Holley
ad7187ee15 Bug 877261 - Stop taking a cx in XPCWrappedJS::GetNewOrUsed. r=Ms2ger
Some of these callers seem to be passing a ccx when they don't need to, but
let's just remove the param all together for consistency.
2013-06-04 21:11:19 -07:00
Bobby Holley
1b2f22fe61 Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
ba05c93769 Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Boris Zbarsky
92fcdb83bf Bug 874105. Make CallSetup hold a Rooted to the object it's constructed with so we don't have to worry about it going gray while things like argument conversion for the call are in progress. r=mccr8 2013-05-21 14:15:29 -04:00
Bobby Holley
0bda6fb49c Bug 841312 - Remove the termination function API. r=bz
\o/
2013-05-21 11:45:56 -06:00
Sankha Narayan Guria
6349c5c599 Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley 2013-05-06 09:04:17 -04:00
Boris Zbarsky
05def15f98 Bug 865969 part 8. Fix rooting hazards in CallbackObject. r=ms2ger 2013-05-03 19:29:09 -04:00
Boris Zbarsky
aa1e53124f Bug 835643 part 2. Store an EventListenerHolder, not an nsIDOMEventListener, in nsListenerStruct. r=smaug 2013-04-16 17:15:57 -04:00