Commit Graph

49 Commits

Author SHA1 Message Date
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
Bobby Holley
218c039537 Bug 1052052 - Hoist AutoCxPusher into ScriptSettings.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
e27596c835 Bug 1052052 - Convert AutoJSContext to AutoJSAPI. r=gabor
With this change, the only cx push left in the tree happens inside of AutoJSAPI. \o/
2014-08-14 12:54:37 -07: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
Bobby Holley
a4080ecb66 Bug 1052052 - Hoist AutoCxPusher into ScriptSettings.h. r=gabor 2014-08-14 12:53:52 -07:00
Seth Fowler
ea2c64d748 Bug 913586 (Part 4) - Update Maybe users in dom. r=bz 2014-08-13 15:39:41 -07:00
Bobby Holley
7a6db8d488 Bug 1052042 - Move the pre-pop GC to AutoEntryScript. r=billm 2014-08-13 15:36:44 -07:00
Steve Fink
e524a06718 Bug 1022773 - Fix AutoJSAPI initialization rooting by annotating nsIScriptContext.GetWindowProxy and (temporarily) runtime-rooting, r=bholley 2014-07-01 09:02:10 -07:00
Olli Pettay
5d90a0c029 Bug 1029866 - Rename InitUsingWin(...) to Init(...), r=bobowencode 2014-06-25 13:17:17 +03:00
Bob Owen
bb9f7ba2dc Bug 1025476 - Part 1: Add compulsory Init functions to AutoJSAPI. r=bholley 2014-06-19 08:21:14 +01:00
Jim Blandy
6091a3ddbb Bug 971673: Replace ScriptSettingsStack's array with a C++-stack-allocated linked list. r=bholley 2014-06-12 23:24:13 -07:00
Bobby Holley
1ec6dc775b Bug 990090 - Add a version of AutoJSAPIWithErrorsReportedToWindow that takes an nsIGlobalObject. r=bz 2014-06-12 10:02:33 -07:00
Boris Zbarsky
d2cbc5790d Bug 1019163. Hold a weak ref to the principal in AutoEntryScript, to reduce call overhead. r=bholley 2014-06-04 22:48:06 -04:00
Chris Peterson
80ee21aac6 Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in dom. r=smaug 2014-04-20 00:36:40 -07:00
Bobby Holley
efd3ebcfce Bug 989528 - Rename AutoSystemCaller to AutoNoJSAPI, and assert against pre-existing exceptions. r=bz 2014-04-14 20:27:00 -07:00
Bobby Holley
cd5672139a Bug 989528 - Introduce AutoJSAPIWithErrorsReportedToWindow as a replacement for AutoPushJSContextForErrorReporting. r=bz 2014-04-14 20:26:59 -07:00
Bobby Holley
ae2e57086d Bug 989528 - Implement AutoJSAPI. r=bz 2014-04-14 20:26:59 -07:00
Bobby Holley
5703a66d0f Bug 978042 - Make AutoEntryScript usable as a JSContext* and add some assertions. r=bz 2014-03-20 10:19:43 -04:00
Luke Wagner
23fb13f948 Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley) 2014-02-25 09:43:14 -06:00
Bobby Holley
726a217158 Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley
7978f1db3f Bug 968335 - Make Auto{Entry,Incumbent}Global inherit ScriptSettingsStackEntry. r=bz
This will allow us to downcast from a stack entry to an AutoEntryGlobal, and
thereby get at the AutoCxPusher.
2014-02-14 22:36:43 -08:00
Bobby Holley
c49e72b837 Bug 968335 - Use an AutoCxPusher directly in Auto{Entry,Incumbent}Global. r=bz
This will let us ask whether the AutoCxPusher is stack-top.
2014-02-14 22:36:43 -08:00
Bobby Holley
9912e29bed Bug 968335 - Add accessors to the script settings stack entries themselves, not just the globals. r=bz 2014-02-14 22:36:43 -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
Bobby Holley
47512fb39b Bug 968335 - Make Auto{Entry,Incumbent}Global inherit ScriptSettingsStackEntry. r=bz
This will allow us to downcast from a stack entry to an AutoEntryGlobal, and
thereby get at the AutoCxPusher.
2014-02-14 16:13:37 -08:00
Bobby Holley
747ac09f56 Bug 968335 - Use an AutoCxPusher directly in Auto{Entry,Incumbent}Global. r=bz
This will let us ask whether the AutoCxPusher is stack-top.
2014-02-14 16:13:37 -08:00
Bobby Holley
12805057a0 Bug 968335 - Add accessors to the script settings stack entries themselves, not just the globals. r=bz 2014-02-14 16:13:37 -08:00
Andrea Marchesini
151ad9648e Bug 949488 - postMessage's targetOrigin argument should accept /, r=bholley 2014-01-07 19:53:31 +01:00
Wes Kocher
4cf8013e7f Backed out changeset e451b39305f6 (bug 949488) for breaking mochitest-8 on at least b2g 2014-01-06 18:10:34 -08:00
Andrea Marchesini
5b1199a9fe Bug 949488 - postMessage's targetOrigin argument should accept /, r=bholley 2014-01-07 00:05:01 +01:00
Bobby Holley
5036c8af3c Bug 937317 - Implement and expose GetIncumbentGlobal. r=bz,luke 2013-12-11 17:51:57 -08:00
Bobby Holley
55d4b258b6 Bug 937317 - Manipulate the script settings stack from the RAII classes. r=bz 2013-12-11 17:51:57 -08:00
Bobby Holley
5bc22726c1 Bug 937317 - Implement basic script settings stack machinery. r=bz 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
78371594fc Bug 937317 - Implement and expose GetIncumbentGlobal. r=bz,luke 2013-12-06 12:01:42 -08:00
Bobby Holley
ed0c0deb82 Bug 937317 - Manipulate the script settings stack from the RAII classes. r=bz 2013-12-06 12:01:42 -08:00
Bobby Holley
354639aafd Bug 937317 - Implement basic script settings stack machinery. r=bz 2013-12-06 12:01:41 -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
696f9891e3 Backed out changeset 004fa11e352a (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:40 +01:00
Carsten "Tomcat" Book
48629c8e66 Backed out changeset 1f45be0c2485 (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:31 +01:00
Carsten "Tomcat" Book
343ddd62fb Backed out changeset cad77af5f7e6 (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:20 +01:00
Bobby Holley
9294752097 Bug 937317 - Implement and expose GetIncumbentGlobal. r=bz,luke 2013-12-05 21:34:16 -08:00
Bobby Holley
ed6f383ab8 Bug 937317 - Manipulate the script settings stack from the RAII classes. r=bz 2013-12-05 21:34:16 -08:00
Bobby Holley
5d7d2926ca Bug 937317 - Implement basic script settings stack machinery. r=bz 2013-12-05 21:34:16 -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