Commit Graph

101 Commits

Author SHA1 Message Date
Fabrice Desré
b9ba31d0f2 Bug 1179102 - The async version of loadSubscript doesn't get the right JS version. r=bholley 2015-07-01 16:26:08 -07:00
Shu-yu Guo
a415429fcd Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley) 2015-06-21 11:49:57 -07:00
Ryan VanderMeulen
5cfe4eaf4b Backed out 14 changesets (bug 1165486) for causing frequent crashes/asserts in automation.
Backed out changeset 1db9723f1617 (bug 1165486)
Backed out changeset 662ec8b0561e (bug 1165486)
Backed out changeset 97352c48fb98 (bug 1165486)
Backed out changeset 4143cca42cc7 (bug 1165486)
Backed out changeset 5abb37cb0495 (bug 1165486)
Backed out changeset 7b157964c572 (bug 1165486)
Backed out changeset 5c01ab1d9790 (bug 1165486)
Backed out changeset 0e00d8a3ca1d (bug 1165486)
Backed out changeset 5e88d482f5e8 (bug 1165486)
Backed out changeset 513bbca6fb6c (bug 1165486)
Backed out changeset 64fa28f0255a (bug 1165486)
Backed out changeset 7a404929c74c (bug 1165486)
Backed out changeset 1dc0d6adf6ed (bug 1165486)
Backed out changeset 381003ca79a3 (bug 1165486)

CLOSED TREE
2015-06-18 13:05:10 -04:00
Shu-yu Guo
95b4d04c31 Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley) 2015-06-17 21:26:57 -07:00
Carsten "Tomcat" Book
2253b50780 Backed out changeset 8031242fe5e5 (bug 1165486) 2015-06-16 10:45:29 +02:00
Shu-yu Guo
b8c6889a41 Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley) 2015-06-15 21:32:30 -07:00
Wes Kocher
c2daa517f7 Backed out 12 changesets (bug 1165486) for windows spidermonkey failures CLOSED TREE
Backed out changeset ce3c302864bf (bug 1165486)
Backed out changeset f69852001c61 (bug 1165486)
Backed out changeset 06cc09729bf4 (bug 1165486)
Backed out changeset 52772afc023e (bug 1165486)
Backed out changeset 502ddf7d2268 (bug 1165486)
Backed out changeset b04ab7bd78af (bug 1165486)
Backed out changeset 53fcddbe4cfb (bug 1165486)
Backed out changeset 63bd369e5349 (bug 1165486)
Backed out changeset 1e35269a8062 (bug 1165486)
Backed out changeset e3c11d517e18 (bug 1165486)
Backed out changeset ccd90228daf6 (bug 1165486)
Backed out changeset eb11e655d223 (bug 1165486)
2015-06-15 18:07:52 -07:00
Shu-yu Guo
0b4f672545 Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley) 2015-06-15 17:38:01 -07:00
Fabrice Desré
9b2bb554be Bug 1150106 - Async loadSubscript - Part 1, add async to loadSubscriptWithOptions r=bholley,mcrr8 2015-05-20 22:14:49 -07:00
Boris Zbarsky
fdaf501865 Bug 679939 part 8. Drop the now-unused compileAndGo from CompileOptions. r=luke 2015-04-01 12:05:29 -04:00
Wes Kocher
c506200d80 Backed out 8 changesets (bug 679939) for test failures
Backed out changeset 4a1a45bc093a (bug 679939)
Backed out changeset 5336ae0fe919 (bug 679939)
Backed out changeset 4cbcb40e0ef4 (bug 679939)
Backed out changeset 3bc68cf4610b (bug 679939)
Backed out changeset ec2d863a3df9 (bug 679939)
Backed out changeset 4425a55312c6 (bug 679939)
Backed out changeset d3793e00b41f (bug 679939)
Backed out changeset 872edd1aedf7 (bug 679939)
2015-04-01 10:24:42 -07:00
Boris Zbarsky
21814fccdd Bug 679939 part 8. Drop the now-unused compileAndGo from CompileOptions. r=luke 2015-04-01 12:05:29 -04:00
Jan de Mooij
353df38b83 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 23:22:11 +01:00
Phil Ringnalda
ebf64fc997 Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
CLOSED TREE
2015-03-28 10:39:56 -07:00
Jan de Mooij
f981f078d8 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 12:08:37 +01:00
Boris Zbarsky
985513ef44 Bug 1144743 part 3. Set hasPollutedGlobalScope when we're compiling scripts we know will be executed with a non-global scope without cloning them. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
0202d1a774 Bug 1143793 part 6. Drop the obj argument of JS::Compile. r=luke
This is technically a behavior change for the shell's disfile() function, but
I really doubt anyone is doing disfile.call(someObj).
2015-03-19 10:13:34 -04:00
Boris Zbarsky
9bdcb642ba Bug 1097987 part 6. Require callers of JS_ExecuteScript to either use the global as the scope or pass in an explicit scopechain. r=waldo 2015-03-14 01:36:16 -04:00
Boris Zbarsky
24cd3ff0d2 Bug 1097987 part 4. Change mozJSSubScriptLoader to use the scopechain version of JS_ExecuteScript as needed. r=bholley 2015-03-14 01:36:16 -04:00
Boris Zbarsky
7b450a386a Bug 1137578. Remove JS_GetParent usage from mozJSSubscriptLoader. r=bholley 2015-03-03 07:12:01 -05:00
Christoph Kerschbaumer
e7043cc6be Bug 1110469 - Remove NS_OpenURI (r=sworkman) 2015-01-11 20:26:40 -08:00
Fabrice Desré
d9365a9da5 Bug 923897 - Extensibility support for b2g r=ferjm,bholley 2014-12-16 15:32:28 -08:00
Boris Zbarsky
9545bb2f5d Bug 1095660 part 1. Remove the pointless JS_ExecuteScriptVersion API. r=waldo,bholley 2014-11-12 17:04:28 -05:00
Alexander J. Vincent
1255b6cbe8 Bug 1092477 - Let the subscript Loader report any URL it fails on, when it can. r=bholley 2014-11-08 17:08:09 -08:00
Boris Zbarsky
3874dcc6b3 Bug 1089026 part 4. Change the CompileFunction calls in the component loader and subscript loader to pass in their desired scope chains. r=bholley 2014-10-30 19:40:29 -04:00
Christoph Kerschbaumer
faccbd4747 Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst) 2014-10-15 19:11:45 -07:00
Tom Schuster
0db58380c0 Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Christoph Kerschbaumer
ef6536b244 Bug 1038756: Callsites creating a channel in /js/ (r=mrbkap) 2014-09-21 09:45:16 -07:00
Chris Peterson
b3b77faddd Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Bobby Holley
fb72204dc4 Bug 1062077 - Remove now-no-op error reporter munging in mozJSSubScriptLoader.cpp. r=bz
In the past this might theoretically have switched us from
NS_ScriptErrorReporter to xpc::SystemErrorReporter, but those have now been
merged.
2014-09-08 16:30:12 -07:00
Ehsan Akhgari
10583ebaa1 Bug 1060977 - Fix more bad implicit constructors in xpconnect; r=smaug 2014-08-31 21:06:35 -04:00
Steve Fink
5c77611361 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
Steve Fink
6205dc4b00 Bug 1022773 - Resolve hazard by switching Compile to MutableHandle, r=terrence,smaug,bholley
--HG--
extra : rebase_source : a6f4eb9138688c09bce15f36ffc0bdb5b6e3dc5f
2014-06-11 17:38:22 -07:00
Benoit Jacob
083f0e0cc1 Bug 1028588 - Fix dangerous public destructors in js/xpconnect - r=bholley 2014-06-23 14:49:08 -04:00
Bobby Holley
6e05608e3e Bug 1026860 - Remove mThisObjects and use the function parent instead. r=luke,khuey 2014-06-18 22:36:42 -07:00
Nathan Froyd
097f6cd142 Bug 1003309 - remove JS component loader construction from mozJSSubScriptLoader; r=bholley 2014-04-29 13:28:23 -04:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Birunthan Mohanathas
eaba6c5a37 Bug 866289 - Make mode lines consistent in js/xpconnect/ for 4 space indented files. r=Ms2ger 2014-04-03 07:58:00 -04:00
Ben Kelly
8d277b1250 Bug 987556 Part 10 Use JS::SourceBufferHolder in mozJSSubScriptLoader. r=bz 2014-04-25 10:11:57 -04:00
Bobby Holley
415f46fd09 Bug 990353 - Make discardSource a Sandbox option and use it (even in Desktop) for the precompilation scope. r=luke 2014-04-22 14:08:29 -07:00
Bobby Holley
91dd463b40 Bug 990353 - Make the decision to discard source entirely per-global, rather than per-script. r=luke
This is effectively a policy decision based on the kind of code we expect to be
running somewhere. This is in contrast to lazy source, which is often a practical
per-script consideration of whether or not we can retrieve the source if requested.

More importantly, tracking this information on the global is much easier to
get right than tracking it on the script.
2014-04-22 14:08:27 -07:00
Fabrice Desré
140000dc46 Bug 965970 - Add support to compile asm.js code at install/update time r=luke,bholley,marco 2014-04-17 22:03:03 -07:00
Jon Coppeard
bb2e7cbea1 Bug 959787 - Handlify JS_ExecuteScript and JS::Evaluate APIs r=terrence r=bz 2014-04-01 11:34:39 +01:00
Luke Wagner
731533e709 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
Jeff Walden
5a7db86560 Bug 972132 - Convert JS::EmptyValueArray to JS::HandleValueArray::empty(). r=terrence
--HG--
extra : rebase_source : 58b87df07373a7811136682b128aea67f04446cd
2014-02-12 23:38:36 -08:00
Luke Wagner
4c59cb92eb Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley)
--HG--
extra : rebase_source : 58387ce3e4c49d3140b92b84bf3577fc6584820e
2014-02-25 09:43:14 -06:00
Jon Coppeard
8136579d75 Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz 2014-02-13 15:33:04 +00:00
Jon Coppeard
60baf94ae8 Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug 2014-02-11 10:59:16 +00:00
Tom Schuster
57f15ea1e2 Bug 958119 - Some cleanup for XPConnect. r=gabor 2014-01-22 18:50:32 +01:00
Tom Schuster
e64b35e141 Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01:00