Commit Graph

85 Commits

Author SHA1 Message Date
Boris Zbarsky
a14ec7f202 Bug 1088228 part 2. Create an nsJSUtils API for building the scope chain for a given Element. r=peterv 2014-10-30 17:40:09 -04:00
Wes Kocher
f060936900 Backed out 6 changesets (bug 1088228) for static analysis bustage
Backed out changeset 13ecff800114 (bug 1088228)
Backed out changeset de692c3335f2 (bug 1088228)
Backed out changeset 2d449a2b4e1c (bug 1088228)
Backed out changeset 49ac8f33ab70 (bug 1088228)
Backed out changeset 920d50e84a17 (bug 1088228)
Backed out changeset 55f4818378e4 (bug 1088228)
2014-10-30 16:24:02 -07:00
Boris Zbarsky
49256af4b5 Bug 1088228 part 2. Create an nsJSUtils API for building the scope chain for a given Element. r=peterv 2014-10-30 17:40:09 -04:00
Boris Zbarsky
ac67e4fb9f Bug 1083648 part 3. Change nsJSUtils::CompileFunction to take an explicit scope chain vector, not just a single scope object, and pass in the right objects in CompileEventHandlerInternal. r=bholley 2014-10-25 00:50:29 -04:00
Tom Schuster
2c3047badc Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Bobby Holley
cf948c70bb 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
6d9d935743 Bug 981218 - Stop using default compartment objects in nsJSUtils.cpp. r=bobowen 2014-08-21 17:13:50 -07:00
Bobby Holley
b24fd449b2 Bug 796938 - Remove GetDynamicScriptContext API. r=smaug 2014-08-19 12:02:08 -07:00
Bobby Holley
90903eaf82 Bug 796938 - Remove GetDynamicScriptGlobal API. r=smaug 2014-08-19 12:02:07 -07:00
Bobby Holley
46195905c8 Bug 1052089 - Swap out the SafeJSContextGlobal for the new UnprivilegedJunkScope. r=billm 2014-08-18 10:57:30 -07:00
Seth Fowler
9df3dafe56 Bug 913586 (Part 4) - Update Maybe users in dom. r=bz
--HG--
extra : rebase_source : 7b6159b00b3bf4f919b30f1bccc8939cc04fe526
2014-08-13 15:39:41 -07:00
Steve Fink
ad8ab618ed Bug 1022773 - Switch all JS Compile functions to use MutableHandle, r=terrence
--HG--
extra : rebase_source : e7542a31e4818e6beafd2b1dab096606370534bb
2014-06-25 15:35:35 -07:00
Victor Porof
928e1cef59 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Ben Kelly
0877556f45 Bug 987556 Part 4 Use JS::SourceBufferHolder in nsJSUtils::EvaluateString(). r=bz 2014-04-25 10:11:56 -04:00
Jon Coppeard
bd123acdd3 Bug 959787 - Handlify JS_ExecuteScript and JS::Evaluate APIs r=terrence r=bz 2014-04-01 11:34:39 +01:00
Bobby Holley
ed41a09c4d Bug 979481 - Don't depend on the default global for the SafeJSContext in nsJSUtils::ReportPendingException. r=bz 2014-03-26 10:59:03 -03:00
Jon Coppeard
524071f389 Bug 959787 - Handlify JS_ExecuteScript, JS_EvaluateScript and other JS APIs r=sfink r=bz 2014-03-17 16:17:58 +00:00
Carsten "Tomcat" Book
749fca5b88 Backed out changeset 5423f1b0599e (bug 979481) 2014-03-10 12:31:34 +01:00
Luke Wagner
d4eada70bf Bug 980180 - remove principals as an argument to compilation, part 1 (r=terrence)
--HG--
extra : rebase_source : 8bf0ff6974870d6772021aafa88dd8fd5132fc70
2014-03-06 16:28:05 -06:00
Bobby Holley
6793f5a2d1 Bug 979481 - Don't depend on the default global for the SafeJSContext in nsJSUtils::ReportPendingException. r=bz 2014-03-06 08:55:00 -08: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
Luke Wagner
13dba8c69f Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley)
--HG--
extra : rebase_source : 58387ce3e4c49d3140b92b84bf3577fc6584820e
2014-02-25 09:43:14 -06:00
Nikhil Marathe
7b139fafd1 Bug 939332 - Implement Promise.all, Promise.cast, Promise.race. r=bz
--HG--
extra : rebase_source : 72c1a87a6352005765442ea8903cfa16da8608fd
extra : amend_source : 71b6af7c8446cd501bc337d50a345f24814f20db
2013-11-19 13:53:00 -08:00
Bobby Holley
688bba41bf Bug 939166 - Be more direct in GetStaticScriptGlobal. r=bz
This can all collapse because of the following facts:
* Ever since we introduced SandboxPrivate, we never actually use a Window
  as an SOP for a sandbox.
* nsGlobalWindow is actually the only thing that implements nsIScriptGlobalObject.
2013-11-20 08:48:00 -08:00
Tom Schuster
f052cdba92 Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz 2013-11-16 13:31:36 +01:00
Ms2ger
29adada2a2 Backout changesets ded0d64f6786:03f041d03f24 and 30cbd1abde1a (bug 935696, bug 933834 and bug 939194) for build bustage. 2013-11-17 16:39:25 +01:00
Tom Schuster
a12aa024e6 Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz 2013-11-16 13:31:36 +01:00
Bobby Holley
d071bd541c Bug 840488 - Refactor Gecko to provide a more direct API to ask whether script is allowed for a given global. r=bz 2013-11-12 16:43:31 -08:00
Ms2ger
786aa40195 No bug - Fix some style issues in DOM code. 2013-11-11 09:04:41 +01: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
Tom Schuster
ce701cf26f Bug 930782 - Handlify JS_WrapValue. r=terrence 2013-10-26 18:19:05 +02:00
Jon Coppeard
60622be6ee Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug 2013-09-20 10:22:59 +01:00
Jon Coppeard
dffe7f475b Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Brian Hackett
98b76dd0aa Bug 906371 - Use off thread JS parsing when loading async scripts, r=bz,billm. 2013-09-11 17:42:09 -06:00
Dan Gohman
586b9aee99 Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Kyle Huey
a53f6f80b6 Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Bobby Holley
1e72ccd895 Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-09-04 14:06:57 -07:00
Bobby Holley
df08f737c1 Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8 2013-09-04 14:06:55 -07:00
Nicholas Nethercote
b6d6b342af Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Ryan VanderMeulen
252154d12a Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Bobby Holley
41d0a60a21 Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
f4dd8b2c3e Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8 2013-08-27 15:21:38 -07:00
Gabor Krizsanits
1e25746b3e Bug 877673 - Part 1: AutoDontReportUncaught. r=bholley 2013-08-19 11:46:24 +02:00
Ehsan Akhgari
c0a07f27fe Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
Ms2ger
6ec28362b3 Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Bobby Holley
f42ad67212 Bug 901362 - Give EvaluateString consumers the option to propagate exceptions instead of reporting. r=gabor 2013-08-08 16:51:35 -07:00
Bobby Holley
ce71a42cc1 Bug 901362 - Refactor nsJSUtils::EvaluateString to take an EvaluateOptions structure. r=gabor 2013-08-08 16:51:35 -07:00
Bobby Holley
e976c1230d Bug 901162 - Hoist EvaluateString into nsJSUtils. r=bz 2013-08-08 16:51:34 -07:00
Nicholas Nethercote
849635b8f1 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
aa5919539d Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
--HG--
extra : rebase_source : 25f4de1bfae830b0af6407d260a70b787ab1dc9b
2013-08-06 23:59:54 -07:00