Commit Graph

2871 Commits

Author SHA1 Message Date
Tom Schuster
dd485f9336 Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz 2013-11-16 13:31:36 +01:00
Tom Schuster
80c32cca12 Bug 935696 - Tidy up XPCStringConvert::ReadableToJSVal. r=bz 2013-11-16 13:31:36 +01:00
Bobby Holley
f298af1bab Bug 840488 - New domain policy API. r=bz
Note that this patch changes the semantics of javascript.enabled so that changes
to the pref do not apply to compartments that have already been created. This is
a significant change, but is necessary to support the new domain policy API.
After one cycle or so, we'll rip out the old API.
2013-11-12 16:43:35 -08:00
Bobby Holley
a80315ff5c Bug 840488 - Compute immunity from caps checks exactly once, and kill nsScriptSecurityManager::CanExecuteScripts. r=bz 2013-11-12 16:43:35 -08:00
Bobby Holley
15add0796f Bug 840488 - Remove per-JSContext script toggling. r=bz
Note that the checks in nsJSEnvironment::EvaluateString and EvalInWindow
can safely go away, because we call ssm->ScriptAllowed() in
nsJSUtils::EvaluateString.
2013-11-12 16:43:35 -08:00
Bobby Holley
70289cf621 Bug 840488 - Directly mark compartments whose docshells disable script execution. r=bz 2013-11-12 16:43:33 -08:00
Bobby Holley
2c448611f5 Bug 840488 - Introduce a mechanism to temporarily or permanently block script for a given scope, and use it for unsafe channels. r=bz 2013-11-12 16:43:33 -08:00
David Major
198e213e28 Bug 932100 - Part 2: Move DLL blocklist code to mozglue. r=bsmedberg, r=glandium
--HG--
rename : toolkit/xre/nsWindowsDllBlocklist.cpp => mozglue/build/WindowsDllBlocklist.cpp
2013-11-12 08:31:32 -05:00
Birunthan Mohanathas
58a91e67d8 Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan 2013-11-11 14:17:14 -05:00
Ms2ger
7a032cfeab Bug 933326 - Part b: Remove xpc_qsThrowMethodFailedWithCcx and xpc_qsThrowMethodFailedWithDetails; r=bholley 2013-11-11 08:56:59 +01:00
Ms2ger
6c9dec4be0 Bug 933326 - Part a: Remove xpc_qsStringToJsstring; r=bholley 2013-11-11 08:56:03 +01:00
Jeff Walden
04e9645fc3 Bug 903332 - Make watch/unwatch into proxy hooks and such, and make watching/unwatching work on DOM proxies and windows (or at least work as much as it ever did, which is to say kinda-sorta-ish). r=bhackett, r=efaust
--HG--
extra : rebase_source : 58dc71e7e58208a2cfa12b265adca7b189e5e5bd
2013-10-29 16:39:09 -07:00
Mike Hommey
8f10c67fbb Bug 935305 - Move preprocessor to mozbuild.action. r=gps
--HG--
rename : config/Preprocessor.py => python/mozbuild/mozbuild/preprocessor.py
rename : config/tests/unit-Expression.py => python/mozbuild/mozbuild/test/test_expression.py
rename : config/tests/unit-LineEndings.py => python/mozbuild/mozbuild/test/test_line_endings.py
rename : config/tests/unit-Preprocessor.py => python/mozbuild/mozbuild/test/test_preprocessor.py
2013-11-09 10:35:44 +09:00
Ryan VanderMeulen
e4bf9a3a4a Backed out changeset ec8ac6112088 (bug 933885) for frequent xpcshell test_singlebytes.js timeouts. 2013-11-07 16:45:17 -05:00
Ryan VanderMeulen
9d31989c15 Backed out changeset 471db633b20c (bug 903332) for B2G desktop mochitest-1 failures. 2013-11-07 16:10:21 -05:00
Zack Weinberg
7782ff7dd7 Bug 933885: make xpcshell dump() handle non-ASCII characters correctly. r=bz,ted 2013-11-07 14:10:58 -05:00
Jeff Walden
39bee2a91f Bug 903332 - Make watch/unwatch into proxy hooks and such, and make watching/unwatching work on DOM proxies and windows (or at least work as much as it ever did, which is to say kinda-sorta-ish). r=bhackett, r=efaust
--HG--
extra : rebase_source : b5bae3832b7718b579abb7c09f36c9c46907d7cc
2013-10-29 16:39:09 -07:00
Andrew McCreight
b5a0433a5f Bug 905382, part 2 - Implement per-zone string conversion cache. r=bz 2013-09-26 16:18:27 -07:00
Boris Zbarsky
bb048bcdda Bug 934544. For the case when we have to copy an XPCOM string into a JSString, just ask the JS engine to do that. It'll do a better job of avoiding malloc than we can, since it can sometimes store string data inline in the string. r=peterv 2013-11-06 13:02:58 -05:00
Tom Schuster
8f66a758c7 Bug 934557 - Handlify JS::ToBoolean and remove JS_ValueToBoolean. r=terrence 2013-11-06 16:26:50 +01:00
Nicholas Nethercote
d8a3b0f0bb Bug 934321 - Add MemoryMultiReporter, a helper class that reduces some boilerplate, and convert all existing multi-reporters to use it. r=wchen.
--HG--
extra : rebase_source : a6110c3558c571b7908b63e8cc7ca21103098d0d
2013-11-06 14:58:20 +11:00
Gijs Kruitbosch
659ec36f05 Fix mochitest-other debug bustage caused by bug 821726 by expecting assertions, rs=bustage on a CLOSED TREE 2013-11-05 21:43:01 +01:00
Gijs Kruitbosch
b9bab00f22 Bug 821726 - allow bypassing script cache when using loadSubscript, r=bholley 2013-11-05 16:35:41 +01:00
Peter Van der Beken
255e6fe560 Bug 932322 - Make Window's WebIDL properties be own properties of window. r=bz.
--HG--
extra : rebase_source : 5595267a420f81f20e5e227712886c9329bec473
2013-10-08 18:18:40 +02:00
Gabor Krizsanits
8550f0ba8d Bug 930523 = createObjectIn should waive. r=bholley 2013-11-05 08:02:07 +01:00
Gabor Krizsanits
0fa275fef4 Bug 930910 - evalInWindow for Cu. r=bholley 2013-11-05 08:00:30 +01:00
Gabor Krizsanits
b509eb8d77 Bug 930910 - exportFunction for Cu. r=bholley 2013-11-05 08:00:20 +01:00
Gabor Krizsanits
fa55e5337b Bug 930910 - options object for Cu.createObjectIn. r=bholley 2013-11-05 08:00:05 +01:00
Mike Hommey
ff32f10568 Bug 934337 - Get rid of custom rules fiddling with SHARED_LIBRARY. r=mshal
While here, remove other custom rules in the same Makefiles.
2013-11-05 13:28:26 +09:00
Mike Hommey
7f655b04c9 Bug 934336 - Remove apparently useless dependencies on js-confdefs.h. r=mshal 2013-11-05 07:39:28 +09:00
Ryan VanderMeulen
78649cfa0f Backed out 3 changesets (bug 932309, bug 932322) for Linux mochitest-bc timeouts on a CLOSED TREE.
Backed out changeset aea34e69d171 (bug 932322)
Backed out changeset 2b99a0f6ff1b (bug 932309)
Backed out changeset 0e3bcb78784e (bug 932309)
2013-11-04 14:31:21 -05:00
Peter Van der Beken
96bb7d1a68 Bug 932322 - Make Window's WebIDL properties be own properties of window. r=bz.
--HG--
extra : rebase_source : b8ce4fedf7fc46b14a1d01663945d1b0e22bdcdd
2013-10-08 18:18:40 +02:00
Nicholas Nethercote
cdfc960ca4 Bug 837566 - Remove js_RemoveRoot. r=terrence.
--HG--
extra : rebase_source : b3b615c34cfa4b9766a3484060242498c5a57e63
2013-02-03 20:16:19 -08:00
Tom Schuster
b0f36a0a96 Bug 933946 - Remove the rest of the old number conversion functions from SpiderMonkey. r=terrence 2013-11-02 13:48:09 +01:00
Tom Schuster
357151515a Bug 933810 - Really remove JS_ValueToECMAUint32. r=terrence f=mccr8 2013-11-01 20:44:05 +01:00
Bobby Holley
c3012b9053 Bug 911864 - Make in-content XBL event handlers allowuntrusted=false by default. r=smaug 2013-11-01 15:31:58 +01:00
Bobby Holley
7b822eba16 Bug 911864 - When QIing objects bound with XBL scopes, route the XPCWrappedJS through an XrayWrapper from the XBL scope. r=smaug 2013-11-01 15:31:57 +01:00
Bobby Holley
8cce7588ac Bug 911864 - Add annotations to our XBL tests as-needed. r=smaug 2013-11-01 15:31:57 +01:00
Bobby Holley
e5ef6f2a60 Bug 911864 - Install XBL members in the safe scope, then clone them into content (rather than the reverse). r=smaug 2013-11-01 15:31:57 +01:00
Nils Maier
4d52a5cdd3 Bug 929120 - Add a way to get compartment locations ignoring non-addon locations. r=njn
Use that new way to map compartments to add-ons. As an added bonus, fix a currently unproblematic off-by-one error in the location parser.
2013-10-31 23:04:11 -04:00
Boris Zbarsky
4eb56cc9c3 Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger 2013-10-11 12:28:24 -04:00
Mike Hommey
71a1f5b46c Bug 864774 part 3 - Move some more CPPSRCS to moz.build. r=mshal 2013-10-30 07:51:03 +09:00
Ryan VanderMeulen
b3ebc15f66 Merge m-c to inbound on a CLOSED TREE. 2013-10-30 22:42:13 -04:00
Terrence Cole
d22937377d Bug 932364 - Fix an exact rooting hazard around AddSizeOfTab; r=njn
--HG--
extra : rebase_source : cb0ab85f7f850ce3c250dd75ff32a416dba7b153
2013-10-28 10:14:06 -07:00
Ed Morley
d54e219b06 Merge mozilla-central and b2g-inbound 2013-10-29 16:34:46 +00:00
Vicamo Yang
3eb62fc290 Bug 920551 - 2.h/2: fix dom/system/gonk/*. r=hsinyi,khuey 2013-10-29 16:12:45 +08:00
Nicholas Nethercote
ba1e9bce90 Bug 925584 - Remove some unnecessary jsapi.h inclusions from .cpp files. r=Ms2ger.
--HG--
extra : rebase_source : 41fcb0e922a519ef679c1c1b6293c2b638e83a48
2013-10-10 15:22:35 -07:00
Peter Van der Beken
cbf7a0c800 Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Tom Schuster
306cb13efc Bug 930782 - Handlify JS_WrapValue. r=terrence 2013-10-26 18:19:05 +02:00
Ms2ger
34f7a76bb1 Backout changeset 2e466ccc7bd0 for devtools test failures. 2013-10-26 17:02:20 +02:00