Commit Graph

71 Commits

Author SHA1 Message Date
Ryan VanderMeulen
84f80b7f6f Backed out changeset 0dca237df7e2 (bug 1160307) for causing bug 1184752. 2015-07-16 20:38:13 -04:00
Tom Tromey
e447790176 Bug 1160307 - Capture async stack frames on Javascript timeline markers. r=fitzgen, r=smaug, r=Paolo 2015-07-15 12:15:00 -04:00
Boris Zbarsky
3d48008d40 Bug 1174486 part 2. Add a way to explicitly report a pending exception on an AutoJSAPI that has taken ownership of error reporting. r=bholley
This is needed for some cases that currently report an exception and then do
some other work on the same cx (specifically, nsXBLProtoImplField::InstallField).
2015-06-15 20:10:38 -04:00
Olli Pettay
e3af630b33 Bug 1149891, backout bug 1081038 because it made us run mutation observer callbacks against the spec, part 1, r=bholley 2015-05-29 19:10:19 +03:00
Tom Tromey
f0669fbdd0 Bug 1050500 - Add callee information to Javascript timeline markers. r=smaug 2015-05-20 05:28:00 -04:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Jim Blandy
a52b425862 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley 2015-04-08 21:23:48 -04:00
Ehsan Akhgari
146b77ef25 Bug 1123112 - Mark AutoEntryScript as stack class, and clarify the ownership of its members; r=smaug 2015-01-18 18:43:03 -05:00
Ehsan Akhgari
b6e35bb4b4 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Nikhil Marathe
c06c8126db Bug 1107777 - Add autoJSAPIOwnsErrorReporting flag to JSContext options. AutoJSAPI sets it. r=bholley 2014-12-16 02:02:37 -08:00
Bobby Holley
6e61fa1c76 Bug 1103324 - Instantiate an AutoNoJSAPI when dispatching IPC messages. r=billm 2014-12-06 09:51:14 -08:00
Gabor Krizsanits
bbc7113763 Bug 1081038 - part1: Microtask in AutoEntryScript. r=bholley 2014-11-14 16:46:26 +01:00
Kannan Vijayan
41f6d8a7aa Bug 1050774 - Record script execution in timeline view. r=bholley 2014-11-13 16:22:24 -05:00
Carsten "Tomcat" Book
258abebcff Backed out changeset b1f8365b8a92 (bug 1081038) for dt Test Failures on a CLOSED TREE 2014-11-13 11:48:21 +01:00
Gabor Krizsanits
557cf0fae7 Bug 1081038 - part 1: Microtask in AutoEntryScript. r=bholley 2014-11-13 09:50:12 +01:00
Bobby Holley
ceb4c65b4b Bug 1070842 - Move nsJSUtils::CompileFunction (and consequently event handler compilation and XBL compilation) off of nsJSUtils::ReportPendingException. r=bz 2014-09-29 15:34:21 +02:00
Bobby Holley
470def0448 Bug 1070842 - Introduce an API on AutoJSAPI to allow Gecko to handle exceptions without meddling from the JS engine. r=bz 2014-09-29 15:34:21 +02:00
Bobby Holley
f7c451febf Bug 1070696 - Implement a JSObject* override to AutoJSAPI::Init(). r=smaug 2014-09-21 21:31:53 +02:00
Bobby Holley
1bb0323cec Bug 981218 - Remove the JSAutoCompartment from cx pushing. r=bobowen
By this point, AutoJSAPI takes care of entering the correct compartment, so this
no longer serves a purpose.
2014-08-21 17:13:50 -07:00
Bobby Holley
115b664102 Bug 796938 - Switch nsHTMLDocument::Open and XMLDocument::Load to a new GetEntryDocument API and remove nsContentUtils::GetDocumentFromContext. r=smaug 2014-08-19 12:02:06 -07:00
Bobby Holley
16c18914d9 Bug 951991 - Implement GetEntryGlobal. r=smaug 2014-08-19 12:02:05 -07:00
Bobby Holley
daf81110d8 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 18:47:16 -07:00
Bobby Holley
7c7704aa07 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Bobby Holley
d6a4070c87 Bug 1052052 - Hoist AutoCxPusher into ScriptSettings.h. r=gabor 2014-08-14 18:47:15 -07:00
Jim Blandy
d934112710 Bug 971673: Ensure mozilla::dom::ScriptSettingsStackEntry is only used as a base class: make its constructor protected. r=bholley 2014-08-14 16:23:15 -07:00
Ryan VanderMeulen
7c3098f03b Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
2807cea4b6 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
e5da39b71b Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Bobby Holley
95763e1065 Bug 1052052 - Hoist AutoCxPusher into ScriptSettings.h. r=gabor 2014-08-14 12:53:52 -07:00
Seth Fowler
d9a982d9dc Bug 913586 (Part 4) - Update Maybe users in dom. r=bz
--HG--
extra : rebase_source : 7b6159b00b3bf4f919b30f1bccc8939cc04fe526
2014-08-13 15:39:41 -07:00
Bobby Holley
8980f912bc Bug 1052042 - Move the pre-pop GC to AutoEntryScript. r=billm 2014-08-13 15:36:44 -07:00
Bobby Holley
66cb62b573 Bug 1052042 - Make AutoJSAPI MOZ_STACK_CLASS. r=billm
We're about to give AutoEntryScript (a subclass) a non-virtual destructor, which
is safe so long as these things are only stack-allocated.
2014-08-13 15:36:43 -07:00
Ehsan Akhgari
13b9d95037 Bug 1045067 - Fix some bad implicit constructors in dom/content/ipc; r=smaug 2014-07-28 13:17:51 -04:00
Bob Owen
68db9742fb Bug 1037564 Part 2: Replace AutoPushJSContexts et al. in nsXBLPrototypeHandler. r=bholley 2014-07-18 12:52:32 +01:00
Olli Pettay
7da5fd8ae0 Bug 1029866 - Rename InitUsingWin(...) to Init(...), r=bobowencode
--HG--
extra : rebase_source : e04aac99fe64270f283cf49ed52b8f7512a2fa3b
2014-06-25 13:17:17 +03:00
Bob Owen
d5b1972d3b Bug 1025476 - Part 1: Add compulsory Init functions to AutoJSAPI. r=bholley 2014-06-19 08:21:14 +01:00
Jim Blandy
1d6ce23008 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
910eb8b47d Bug 990090 - Add a version of AutoJSAPIWithErrorsReportedToWindow that takes an nsIGlobalObject. r=bz 2014-06-12 10:02:33 -07:00
Boris Zbarsky
6773e49e35 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
Bobby Holley
f223b1107f Bug 989528 - Rename AutoSystemCaller to AutoNoJSAPI, and assert against pre-existing exceptions. r=bz 2014-04-14 20:27:00 -07:00
Bobby Holley
e46565fd18 Bug 989528 - Introduce AutoJSAPIWithErrorsReportedToWindow as a replacement for AutoPushJSContextForErrorReporting. r=bz 2014-04-14 20:26:59 -07:00
Bobby Holley
0655c96c3c Bug 989528 - Implement AutoJSAPI. r=bz 2014-04-14 20:26:59 -07:00
Bobby Holley
bfece61764 Bug 978042 - Make AutoEntryScript usable as a JSContext* and add some assertions. r=bz 2014-03-20 10:19:43 -04:00
Bobby Holley
c163a63a57 Bug 968460 - Use the incumbent global for nsGlobalWindow::GetCallerGlobal and remove JS_GetScriptedGlobal. r=bz 2014-02-14 22:39:33 -08:00
Bobby Holley
c1aac455ec Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley
1ec39fdc0c 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
3a1fc50dc9 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
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
Bobby Holley
a573a5db68 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