Commit Graph

3446 Commits

Author SHA1 Message Date
Bobby Holley
ce783bfe79 Bug 990353 - Give tests/chrome its own moz.build file, like tests/mochitest. r=mshal
We also add a mochitest.ini file, which will eventually be used for http-served
files that are associated with chrome mochitests.
2014-04-22 14:08:28 -07:00
Bobby Holley
0e90eb6de0 Bug 990353 - Flag for discarding where appropriate. r=bent 2014-04-22 14:08:28 -07:00
Bobby Holley
821af78f26 Bug 990353 - Add a pref for system source discarding. r=bent 2014-04-22 14:08:28 -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
Bobby Holley
edb924cc7d Bug 993772 - Introduce a singleton compilation scope. r=mrbkap 2014-04-20 11:48:13 -07:00
Bobby Holley
61d6055556 Bug 993772 - Stop serializing principals along with scripts. r=mrbkap
The principal of a script is determined by the compartment these days, so this
field is useless.
2014-04-20 11:48:13 -07:00
Bobby Holley
65765653a9 Bug 998083 - Introduce Cu.getObjectPrincipal and kill nsIScriptSecurityManager::GetObjectPrincipal. r=gabor 2014-04-19 10:39:59 -07:00
Phil Ringnalda
380621d27b Back out 8 changesets (bug 990353) for gaia-integration bustage
CLOSED TREE

Backed out changeset f6b3c03454a4 (bug 990353)
Backed out changeset 6e1f9b821ae0 (bug 990353)
Backed out changeset 2926ad6c594f (bug 990353)
Backed out changeset 74b75c155205 (bug 990353)
Backed out changeset 394e09fe2da2 (bug 990353)
Backed out changeset 0fdd36b19a51 (bug 990353)
Backed out changeset 0792729890cc (bug 990353)
Backed out changeset 487e6f72fcf7 (bug 990353)
2014-04-19 08:37:32 -07:00
Bobby Holley
74a0a20129 Bug 990353 - Followup bustage fix. r=me 2014-04-19 00:40:18 -07:00
Bobby Holley
163413cd27 Bug 990353 - Flip off source discarding for XPCShell. r=fabrice 2014-04-18 23:46:27 -07:00
Bobby Holley
bad6050c41 Bug 990353 - Tests. r=bent 2014-04-18 23:46:27 -07:00
Bobby Holley
8b91401a8c Bug 990353 - Give tests/chrome its own moz.build file, like tests/mochitest. r=mshal
We also add a mochitest.ini file, which will eventually be used for http-served
files that are associated with chrome mochitests.
2014-04-18 23:46:27 -07:00
Bobby Holley
dbcade681f Bug 990353 - Flag for discarding where appropriate. r=bent 2014-04-18 23:46:27 -07:00
Bobby Holley
4568ed7b49 Bug 990353 - Add a pref for system source discarding. r=bent 2014-04-18 23:46:26 -07:00
Bobby Holley
660881d8c2 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-18 23:46:26 -07:00
Ryan VanderMeulen
2075f95fc4 Merge inbound to m-c. 2014-04-18 22:00:13 -04:00
Terrence Cole
4ab31f28b9 Bug 807168 - Make JSTracer into a real C++ class and kill the macro accessors; r=jonco,mccr8
--HG--
rename : js/public/Tracer.h => js/public/TracingAPI.h
2014-04-11 15:19:05 -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
a86b22d40f Bug 996052 - Remove JSVAL_TRACE_KIND, JSVAL_IS_GCTHING and JSVAL_TO_GCTHING r=terrence 2014-04-17 09:36:32 +01:00
Bobby Holley
54afe2bcb5 Bug 997527 - Remove debugging code from bug 960828. r=me a=me DONTBUILD 2014-04-16 18:33:10 -07:00
Gabor Krizsanits
bc997f54ab Bug 996069 - Part3: Stop inheriting nsEP when window.open is called. r=bz 2014-04-16 22:29:57 +02:00
Terrence Cole
c97877c686 Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Shian-Yow Wu
7b625868f7 Bug 945152 - Part 2: Report mapped array buffer statistics for about:memory. r=njn 2014-04-16 19:26:41 +08:00
Jon Coppeard
a775e98530 Bug 912581 - Make JS_Add*Root APIs take Heap<T> r=terrence r=bz r=bholley 2014-04-16 09:47:57 +01:00
Jon Coppeard
2a5c843ea4 Bug 993413 - Remove use of JS_Add/Remove*Root in favour of JS::PersistentRooted where possible r=terrence r=bz r=bholley 2014-04-16 09:47:53 +01:00
Bobby Holley
db7038119f Bug 993423 - Don't hoist <svg:use> content into the XBL scope. r=smaug 2014-04-14 20:38:54 -07:00
Bobby Holley
e46565fd18 Bug 989528 - Introduce AutoJSAPIWithErrorsReportedToWindow as a replacement for AutoPushJSContextForErrorReporting. r=bz 2014-04-14 20:26:59 -07:00
Luke Wagner
2a67984039 Bug 980447 - Add persistenceType argument to nsIQuotaManager.clearStoragesForURI (r=janv)
--HG--
extra : rebase_source : 4d034bd92b099bd1385fc9e8a95fa959fc8e51e0
2014-04-14 15:48:49 -05:00
Bobby Holley
55d4fbb621 Bug 995123 - Associate sandboxPrototyped Sandboxes to their prototype Window, if it exists. r=bz 2014-04-14 08:56:38 -07:00
Ehsan Akhgari
239fa59ff5 Bug 995754 - Remove nsIDOMToString; r=bzbarsky 2014-04-13 18:53:36 -04:00
Olli Pettay
f2b59ae546 Bug 688580 - Run deferred scripts before DOMContentLoaded; r=hsivonen 2014-04-12 11:02:21 +02:00
Ms2ger
21fcb9c219 Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley 2014-04-12 10:15:58 +02:00
Ms2ger
d62cefa5cc Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley 2014-04-12 10:15:57 +02:00
Ms2ger
5356f4e89e Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley 2014-04-12 10:15:56 +02:00
Boris Zbarsky
a13f2f38be Bug 995047. Change out stack/exception APIs to hand out AString instead of AUTF8String for filename/functionname, so we end up with fewer string conversions in practice. r=smaug 2014-04-11 22:20:40 -04:00
Ed Morley
5a0814325c Backed out changeset 592e6de7211b (bug 983989) 2014-04-10 15:48:11 +01:00
Ed Morley
cb516b6ec5 Backed out changeset 91885eced736 (bug 983989) 2014-04-10 15:48:08 +01:00
Ed Morley
011ff99731 Backed out changeset 14ab9b8d15be (bug 983989) 2014-04-10 15:48:04 +01:00
Ms2ger
90d03e3ff8 Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley 2014-04-10 13:24:25 +02:00
Ms2ger
b120ac1b56 Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley 2014-04-10 13:24:25 +02:00
Ms2ger
c3c1cc461d Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley 2014-04-10 13:24:24 +02:00
Boris Zbarsky
adc450e8a7 Bug 993889 part 4. Remove the scope argument of xpc_FastGetCachedWrapper. r=bholley 2014-04-10 00:58:42 -04:00
Boris Zbarsky
3738611b99 Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley 2014-04-10 00:58:41 -04:00
Boris Zbarsky
35fca5eeeb Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
56f44fdf10 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Boris Zbarsky
d3234363d3 Bug 991742 part 1. Enter the compartment of the current wrapper before we try to reparent objects. r=bholley
This lets us preserve some invariants about our current compartment matching the scope we want to wrap into.
2014-04-08 18:27:15 -04:00
Peter Van der Beken
bf31c92b39 Bug 993057 - Fix Xrays to disallow indexed expando properties on Xrays for Window with a WebIDL binding. r=bholley.
--HG--
extra : rebase_source : a7762fc56b9ad1801be22aa3380f430b44082f9e
2014-02-15 22:12:35 +01:00
Peter Van der Beken
e28ddeb1c9 Bug 993053 - Add xpc::InitGlobal containing the common code for wrapping main-thread XPConnect and WebIDL globals. r=bholley.
--HG--
extra : rebase_source : b385e1a3bebc1ef76a49bd2fb0555b3dba640f0d
2014-02-05 22:09:19 +01:00
Peter Van der Beken
c0b23e34f5 Bug 990158 - Make inner windows use their wrapper cache. r=bz.
--HG--
extra : rebase_source : bc040c75280bb45ae7ab0ed302130ff5d7178153
2013-11-09 11:20:22 +01:00
Peter Van der Beken
a12d286723 Bug 984497 - Use SpecialPowers more and change SpecialPower usage to deal with Window on WebIDL bindings. r=bz.
--HG--
rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html
rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html
rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html
extra : rebase_source : 687daf9d78e69fe6ae21f7c1a26503cf88a18b97
2014-02-15 22:12:34 +01:00