Chris Peterson
524d94d09a
Bug 999717 - Fix gcc -Wlogical-op warning in js. r=mrbkap
2014-04-22 14:42:27 -07:00
Bobby Holley
66541eae24
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
c99fbf5e66
Bug 990353 - Flip off source discarding for XPCShell. r=fabrice
2014-04-22 14:08:29 -07:00
Bobby Holley
02602a42c9
Bug 990353 - Tests. r=bent
2014-04-22 14:08:28 -07:00
Bobby Holley
f763d379ad
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
8bd7ee4bf8
Bug 990353 - Flag for discarding where appropriate. r=bent
2014-04-22 14:08:28 -07:00
Bobby Holley
9371810cd3
Bug 990353 - Add a pref for system source discarding. r=bent
2014-04-22 14:08:28 -07:00
Bobby Holley
aaa815d86d
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
f56f915374
Bug 993772 - Introduce a singleton compilation scope. r=mrbkap
2014-04-20 11:48:13 -07:00
Bobby Holley
8cb91cd665
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
130685a225
Bug 998083 - Introduce Cu.getObjectPrincipal and kill nsIScriptSecurityManager::GetObjectPrincipal. r=gabor
2014-04-19 10:39:59 -07:00
Phil Ringnalda
a80cd06599
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
56960c728a
Bug 990353 - Followup bustage fix. r=me
2014-04-19 00:40:18 -07:00
Bobby Holley
ccbf119906
Bug 990353 - Flip off source discarding for XPCShell. r=fabrice
2014-04-18 23:46:27 -07:00
Bobby Holley
b0f7fa3f9c
Bug 990353 - Tests. r=bent
2014-04-18 23:46:27 -07:00
Bobby Holley
ba23922c2d
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
3502193900
Bug 990353 - Flag for discarding where appropriate. r=bent
2014-04-18 23:46:27 -07:00
Bobby Holley
90a7b5cf46
Bug 990353 - Add a pref for system source discarding. r=bent
2014-04-18 23:46:26 -07:00
Bobby Holley
51af5cebbd
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
f394fe9b5b
Merge inbound to m-c.
2014-04-18 22:00:13 -04:00
Terrence Cole
de2fb98fa3
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é
c4f785449c
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
ccef81e8d9
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
a3079083ae
Bug 997527 - Remove debugging code from bug 960828. r=me a=me DONTBUILD
2014-04-16 18:33:10 -07:00
Gabor Krizsanits
d6aefec690
Bug 996069 - Part3: Stop inheriting nsEP when window.open is called. r=bz
2014-04-16 22:29:57 +02:00
Terrence Cole
21e586caba
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
a10ec8bc68
Bug 945152 - Part 2: Report mapped array buffer statistics for about:memory. r=njn
2014-04-16 19:26:41 +08:00
Jon Coppeard
6e3781aa06
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
2c591777e1
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
d39900b36b
Bug 993423 - Don't hoist <svg:use> content into the XBL scope. r=smaug
2014-04-14 20:38:54 -07:00
Bobby Holley
1655b3aa4f
Bug 989528 - Introduce AutoJSAPIWithErrorsReportedToWindow as a replacement for AutoPushJSContextForErrorReporting. r=bz
2014-04-14 20:26:59 -07:00
Luke Wagner
b9c343c46a
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
30ec466f9d
Bug 995123 - Associate sandboxPrototyped Sandboxes to their prototype Window, if it exists. r=bz
2014-04-14 08:56:38 -07:00
Ehsan Akhgari
3e33317c6d
Bug 995754 - Remove nsIDOMToString; r=bzbarsky
2014-04-13 18:53:36 -04:00
Olli Pettay
736b1d9117
Bug 688580 - Run deferred scripts before DOMContentLoaded; r=hsivonen
2014-04-12 11:02:21 +02:00
Ms2ger
76005bd991
Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley
2014-04-12 10:15:58 +02:00
Ms2ger
599fcddb90
Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley
2014-04-12 10:15:57 +02:00
Ms2ger
7da37a381e
Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley
2014-04-12 10:15:56 +02:00
Boris Zbarsky
34e0756678
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
5330c79ca6
Backed out changeset 592e6de7211b (bug 983989)
2014-04-10 15:48:11 +01:00
Ed Morley
915bed264b
Backed out changeset 91885eced736 (bug 983989)
2014-04-10 15:48:08 +01:00
Ed Morley
efe4108058
Backed out changeset 14ab9b8d15be (bug 983989)
2014-04-10 15:48:04 +01:00
Ms2ger
8346630944
Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley
2014-04-10 13:24:25 +02:00
Ms2ger
42bbe814d2
Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley
2014-04-10 13:24:25 +02:00
Ms2ger
c2e5644788
Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley
2014-04-10 13:24:24 +02:00
Boris Zbarsky
4a96901c0e
Bug 993889 part 4. Remove the scope argument of xpc_FastGetCachedWrapper. r=bholley
2014-04-10 00:58:42 -04:00
Boris Zbarsky
67f4d02e6f
Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley
2014-04-10 00:58:41 -04:00
Boris Zbarsky
fdbb455d4f
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
3f26a82832
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
3b4c77d08b
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