Commit Graph

56 Commits

Author SHA1 Message Date
Bobby Holley
c1aac455ec Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 22:36:44 -08:00
Phil Ringnalda
d66d0a8ba2 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
87fced96fc Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 16:13:38 -08:00
Olli Pettay
58ac100785 Bug 963285 - CallSetup may set context options but not restore them , r=bz 2014-01-24 00:56:50 +02:00
Terrence Cole
ca70f1dd99 Bug 955660 - Fix an exact rooting hazard in CallSetup; r=bz 2013-12-31 08:30:57 -08:00
Steve Fink
ef06c11125 Backed out changeset f71e6905567f (bug 952688)
--HG--
extra : rebase_source : 8d66cb74d228fd4e34c72afab98132bf1d2ba549
2013-12-20 16:46:31 -08:00
Steve Fink
676b93f015 Bug 952688 - Root CallbackObject's CallSetup around GlobalScope() call, r=terrence 2013-12-20 16:07:00 -08:00
Bobby Holley
f2303f3400 Bug 950909 - Forward native aggregation to the root XPCWrappedJS. r=mccr8,sr=smaug 2013-12-19 18:08:07 -08:00
Bobby Holley
904374035f 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
86e58bb574 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
48d10625a3 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
e2e1627d17 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
0b02f5ecfa 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
6475f72863 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
ef4bb3070d 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
0db72df158 Backed out changeset f65970fe598f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:48 +01:00
Carsten "Tomcat" Book
0139af29f2 Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book
22b9fc1982 Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:41:59 +01:00
Bobby Holley
8ca6ed8d97 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
8ed094280d 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
027aa23808 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
de72b9855a Additional fix for Bug 943613, r=bz
--HG--
extra : rebase_source : 5a635b26e6ee26d20de88f056136d4a3d0a8e0fe
2013-11-27 18:21:00 +02:00
Olli Pettay
37b1f66f95 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
4c293cf8e4 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
7162ef682f Bug 939166 - Stop going through nsIScriptGlobalObject in CallSetup. r=bz 2013-11-20 08:48:00 -08:00
Bobby Holley
12a1ebfea9 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
850a7bf5fc Bug 880330 - Refactor dom to use the new options API (2/2); r=khuey 2013-10-28 12:51:05 +01:00
Jon Coppeard
38b602931b Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Nikhil Marathe
f10d854d1c Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey 2013-09-09 14:58:29 -07:00
Kyle Huey
abebd382da Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Peter Van der Beken
dcf5712030 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
ecce09df53 Bug 903212 - Remove ScriptEvaluated, and simplify callers. r=mrbkap 2013-08-14 14:00:03 -07:00
Mike Hommey
d01b5df996 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
1c850fd575 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
c10703b2f4 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
91448a9dac 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
54ef3d2952 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
faa061aa98 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
1e852f571d Bug 841312 - Remove the termination function API. r=bz
\o/
2013-05-21 11:45:56 -06:00
Sankha Narayan Guria
7f0c4baace Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley 2013-05-06 09:04:17 -04:00
Boris Zbarsky
d058ab83b1 Bug 865969 part 8. Fix rooting hazards in CallbackObject. r=ms2ger 2013-05-03 19:29:09 -04:00
Boris Zbarsky
1e78780e54 Bug 835643 part 2. Store an EventListenerHolder, not an nsIDOMEventListener, in nsListenerStruct. r=smaug 2013-04-16 17:15:57 -04:00
Boris Zbarsky
7b4ea9ad6a Bug 835643 part 1. Give CallbackObject an IID so that random things don't QI to it. r=smaug
Right now it thinks its IID is the nsISupports IID!
2013-04-16 17:14:30 -04:00
Boris Zbarsky
d2beaf77f2 Bug 810644 part 2. Eliminate the now-unused CallEventHandler. r=smaug, sr=peterv 2013-01-03 14:02:42 -05:00
Jacek Szpot
514f40e52a Bug 854503 - Rename JS unwrapping functions. r=bholley 2013-04-11 11:50:18 -07:00
Boris Zbarsky
d5740592e1 Bug 860473 part 3. Root ErrorResult::ThrowJSException. r=evilpie,smaug 2013-04-11 14:31:06 -04:00
Ryan VanderMeulen
24a4c17eff Backed out changeset a85d21e394c0 (bug 854503) for bustage. 2013-04-06 14:37:33 -04:00
Jacek Szpot
8ce12e971c Bug 854503 - Rename JS unwrapping functions. r=bholley 2013-04-04 12:14:32 +02:00
Boris Zbarsky
0dc474d3f7 Bug 838686 part 1. Add a helper class that can store a WebIDL callback or an XPCOM interface. r=peterv 2013-02-26 15:10:15 -05:00
Boris Zbarsky
f857806f73 Back out changeset a4763990a983 (bug 838686) because gcc doesn't like it and we get a CLOSED TREE. 2013-02-26 15:35:13 -05:00