Tim Huang
72200b06f7
Bug 1319773 - Part 3: Making the WrapperFactory ignores the First Party Domain of the originAttributes when rewrapping the wrapper. r=mrbkap
...
--HG--
extra : rebase_source : 6013d2b7386f907af761098d006949ba07c163d7
2017-01-18 20:34:31 +08:00
Boris Zbarsky
0041276515
Bug 1335654 part 4. Fix some CrossOriginXrayWrapper error reporting bits to follow the HTML spec for cross-origin objects. r=bholley
2017-02-02 12:48:49 -05:00
Boris Zbarsky
bcc1d4ab44
Bug 1335654 part 3. Implement actually throwing a SecurityError when cross-origin property accesses are denied. r=bholley
2017-02-02 12:48:49 -05:00
Boris Zbarsky
72ca8d1730
Bug 1335654 part 2. Change the deny() methods of our wrapper security policies to take a JSContext and a mayThrow boolean. r=bholley
2017-02-02 12:48:49 -05:00
Boris Zbarsky
52118e082c
Bug 1335654 part 1. Propagate AutoEnterPolicy's mayThrow argument to the enter() methods of proxy handlers, so they know whether it's OK to throw some sort of custom exception or whether they should just silently deny. r=bholley,jandem
2017-02-02 12:48:49 -05:00
Hannes Verschore
65f3d3c7f2
Bug 1331414: Adding javascript.options.jit.full_debug_checks in about:config for people that want to use debug builds for surfing with less slowdown, r=jandem
2017-02-01 22:05:14 +01:00
Jon Coppeard
5c43c1ac3b
Bug 1332745 - Split runtime-wide pointer udpates from per-zone updates in compacting GC r=sfink
2017-02-02 16:17:28 +00:00
Sebastian Hengst
e855f7f79d
Backed out changeset dbf9a55f1101 (bug 1331414) for unused variable 'fullJitDebugChecks' at XPCJSContext.cpp:1452. r=backout
2017-02-01 22:26:23 +01:00
Hannes Verschore
f48573af0c
Bug 1331414: Adding javascript.options.jit.full_debug_checks in about:config for people that want to use debug builds for surfing with less slowdown, r=jandem
2017-02-01 22:05:14 +01:00
Boris Zbarsky
970a120fb5
Bug 1335368 part 21. Get rid of some IsCallerChrome usage in XPConnect. r=bholley
2017-02-01 15:43:59 -05:00
Boris Zbarsky
1f816c60cf
Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly
2017-02-01 15:43:37 -05:00
Boris Zbarsky
c41740271d
Bug 1334537. Make sure to clear out our external string cache if the length doesn't match, since our length no longer needs to match our stringbuffer. r=froydnj
...
Without this change, we could do a "short" get of a string (e.g. from
XMLHttpRequest), then do another get that returns the same stringbuffer but a
longer length. But we wouldn't notice, hit our cache, and return the same,
too-short, external string. The site would not see the new data it should have
seen.
2017-02-01 15:29:47 -05:00
Sebastian Hengst
ccd3fc9950
Backed out changeset 99587cc6ef23 (bug 1335536) for failing robocop testFilePicker on Android. r=backout
2017-02-01 19:08:22 +01:00
Andrea Marchesini
3b9eaa7785
Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug
2017-02-01 17:13:08 +01:00
Benjamin Smedberg
ca77995f5d
Bug 1333826 - Remove SDK_FILES, SDK_LIBRARY, and related is_sdk support in the build goop, r=mshal
...
MozReview-Commit-ID: 52vPyDXdFte
--HG--
extra : rebase_source : c3217730bb70eb7319152dd07536b12f49d6a597
2017-01-30 11:24:10 -05:00
Brian Hackett
8033ed29a8
Bug 1324002 - Mark atoms separately in each zone, r=jonco,mccr8,peterv.
...
--HG--
extra : rebase_source : 53cf4fa94f122a991c2adbd7bae3714de4391bb4
2017-01-30 06:31:47 -07:00
Cameron McCormack
9c4ea5685f
Bug 1334768 - stylo: Back out 800030115d2e and 404506488cfb for being completely wrong due to bug 1334938.
...
MozReview-Commit-ID: 8CGTqmtlguT
2017-01-30 16:49:54 +08:00
Florian Quèze
bdc1ffa608
Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws.
2017-01-30 08:10:22 +01:00
Cameron McCormack
7805d4716e
Bug 1334768 - stylo: Test expectation adjustments for 2017-01-29 merge.
...
MozReview-Commit-ID: FFmvs6SHIwW
2017-01-29 15:31:56 +08:00
Tom Schuster
48ee845dbd
Bug 1333073 - Enable DataView Xray. r=bz
2017-01-28 21:52:45 +01:00
Wes Kocher
18e735dcef
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: EfMOcZbAiSe
2017-01-27 16:39:29 -08:00
Wes Kocher
7cd28f7e5d
Merge inbound to central, a=merge
...
MozReview-Commit-ID: HvoljuLV6Gj
2017-01-27 16:37:18 -08:00
Boris Zbarsky
ecfa536932
Bug 1332713 part 3. Implement a version of XrayAwareCalleeGlobal that works for specialized getters. r=bholley
...
The problem is that JSJitGetterInfo doesn't contain a callee. So we can't use
xpc::XrayAwareCalleeGlobal in a specialized getter, because we don't have our
callee function available.
2017-01-27 18:53:36 -05:00
Gijs Kruitbosch
8faf5c08a8
Bug 1333164 - fix invalid references to mochitest stylesheet, r=erahm
...
MozReview-Commit-ID: 1Xxt72jYdm7
--HG--
extra : rebase_source : 15d854ffd6a142687fe5232149a0e370f1c058c2
2017-01-24 14:24:04 +00:00
Florian Quèze
be4dbae285
Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws.
2017-01-27 10:51:02 +01:00
Wes Kocher
8fa84ca644
Merge inbound to central, a=merge
...
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Jan de Mooij
1ea46b80dd
Bug 1330593 part 1 - Allow non-flat external strings. r=jwalden,bz
2017-01-26 18:40:41 +01:00
Tooru Fujisawa
ddd36fec56
Bug 1332245 - Move nsScriptError from js/xpconnect to dom/bindings. r=bz
...
--HG--
rename : js/xpconnect/idl/nsIScriptError.idl => dom/bindings/nsIScriptError.idl
rename : js/xpconnect/src/nsScriptError.cpp => dom/bindings/nsScriptError.cpp
rename : js/xpconnect/src/nsScriptErrorWithStack.cpp => dom/bindings/nsScriptErrorWithStack.cpp
2017-01-28 00:42:47 +09:00
Christian Holler
4dc29b3b09
Bug 1332361 - Expose TestingFunctions to content in FUZZING builds. r=jandem.
...
MozReview-Commit-ID: HA0oodPzAeS
--HG--
extra : rebase_source : 896f4d9465b8bd2a5655dec63165f893b0f0f5df
2017-01-25 13:39:54 +01:00
Florian Quèze
0e0865f4fc
Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws.
2017-01-25 07:01:52 +01:00
Nicholas Nethercote
22b6d342d7
Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
...
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
Nicholas Nethercote
bf48aecf29
Bug 1332172 - Remove XPC_MAP_WANT_*. r=mccr8.
...
nsIXPCScriptable flags handling in xpc_map_end.h is a bit of a mess.
- Half the flags relate to whether various functions are defined (PreCreate,
GetProperty, etc). These are set using the XPC_MAP_WANT_* macros;
for each one xpc_map_end.h inserts the corresponding flag using the
preprocessor (see XPC_MAP_CLASSNAME::GetScriptableFlags()).
- The other half of the flags relate to other things (IS_GLOBAL_OBJECT,
DONT_REFLECT_INTERFACE_NAMES, etc). These are set using the XPC_MAP_FLAGS
macro.
Having two similar but different mechanisms to set the flags for a class is
confusing. (Indeed, until recently we had some classes where a single flag was
redundantly specified via both mechanisms.) Note also that the classes done in
dom/base/nsIDOMClassInfo.h also specify all the flags in a single value,
similar to how XPC_MAP_FLAGS works.
This patch removes the XPC_MAP_WANT_* macros. All flags are now set
via XPC_MAP_FLAGS. This is a significant simplification to xpc_map_end.h and
all the places that use it.
The downside of this change is that I had to change the flag constants from
class constants (i.e. nsIXPCScriptable::FOO) to macros (i.e.
NSIXPCSCRIPTABLE_FOO) because they need to be used in #if statements like this
in xpc_map_end.h:
#if !((XPC_MAP_FLAGS) & NSIXPCSCRIPTABLE_WANT_PRECREATE)
and you can't use a '::'-qualified name inside a #if. I think this downside is
outweighed by the simplification described above.
Overall the patch removes 80 lines of code.
--HG--
extra : rebase_source : 6d5c341d0deba8f1529d81c17bb8819e09620b05
2017-01-23 13:33:58 +11:00
Phil Ringnalda
74f10163fe
Merge m-i to m-c, a=merge
2017-01-21 15:24:42 -08:00
Nicholas Nethercote
12647a7223
Bug 1332577 (part 7) - Rename mozilla_get_pseudo_stack() as profiler_get_pseudo_stack(). r=mstange.
...
This makes it consistent with other profiler functions.
--HG--
extra : rebase_source : 1e52acdc448691b8859bb147a0c70b198b432fe2
2017-01-20 15:07:05 +11:00
Boris Zbarsky
2daa8920fe
Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
...
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
d274f30b35
Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
...
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Sebastian Hengst
e533169d2c
Backed out changeset eab8ccda41b8 (bug 851892)
2017-01-20 19:30:19 +01:00
Sebastian Hengst
d4070f77eb
Backed out changeset 31103a03f2c2 (bug 851892)
2017-01-20 19:30:14 +01:00
Boris Zbarsky
2132f0075d
Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
...
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
a5709a4cb8
Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
...
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Lars T Hansen
6d7b1e9cef
Bug 1312446 - Enable SharedArrayBuffer and Atomics by default. r=shu
...
--HG--
extra : rebase_source : 308016a3820017d790d7a77d8fc25e1388f04df4
extra : amend_source : 1fc3635840cd1a1021f6f3f9d6491c381a122dc9
2017-01-19 17:22:47 +01:00
Mark Banner
16e6d381ac
Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
...
MozReview-Commit-ID: 62Hp5ISxowJ
--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Nicholas Nethercote
b1100b7e94
Bug 1330904 - Remove XPCNativeScriptableCreateInfo. r=mccr8.
...
XPCNativeScriptableCreateInfo is now a very thin wrapper around
nsIXPCScriptable. Removing it simplifies things quite a bit.
Note especially the change to GatherScriptableCreateInfo(), which is a
confusing function. Previously its fourth argument was never touched it was
called, but it did have a return value. Now the fourth argument is touched and
effectively replaces that return value, and the function now returns void.
* * *
Bug 1330904 - fixups. r=mccr8.
I will fold this into the previous patch before landing.
--HG--
extra : rebase_source : 22e7fd0c44dd7c4174f8edf3e1d3ae362bf95757
2017-01-13 11:26:02 +11:00
Boris Zbarsky
3293a4cd98
Bug 1330759 part 3. Add a "stringbuffer we own" mode to DOMString. r=froydnj
...
We're going to need it because we're going to add a consumer that cannot in fact
promise that its stringbuffer reference will outlive the DOMString.
2017-01-18 22:20:14 -05:00
Boris Zbarsky
ced1c6138f
Bug 1330759 part 2. Fix XPCConvert::JSData2Native to not share an external string stringbuffer if it would create a non-null-terminated string. r=froydnj
2017-01-18 22:20:14 -05:00
Kris Maglione
d00d51d963
Bug 1273251: Part 6 - Test that extension window wrappers are nuked on close. r=billm
...
MozReview-Commit-ID: 3sWNuLqZBzp
--HG--
extra : rebase_source : f094357f5bf5b0de0dd1da22c9afeed233f19bb3
2016-11-17 12:44:30 -08:00
Kris Maglione
1a992eb125
Bug 1273251: Part 5 - Add tests for event listeners in nuked sandboxes. r=peterv
...
MozReview-Commit-ID: 1Ok8hhaOdp4
--HG--
extra : rebase_source : b8d10e28367a35fd1da1a59364741ce261e2e898
2016-11-17 12:26:51 -08:00
Kris Maglione
e51f27d8cb
Bug 1273251: Part 1 - Mark nuked sandboxes as nuked and non-scriptable. r=bholley
...
MozReview-Commit-ID: tq9nExa1P7
--HG--
extra : rebase_source : 3c0e856335b8585457e2679b30177bd1df9ac6bb
2017-01-12 14:47:38 -08:00
Mike Hommey
09dc362a61
Bug 1306327 - Use the new XRE Bootstrap API in Desktop Firefox. r=bsmedberg
...
This just wraps all the XRE method calls to go through the Bootstrap API
instead of relying on the XPCOM glue methods.
--HG--
extra : rebase_source : eccbe18b9b21ca1ab6c403515ffd60f0a9174d9c
2016-12-16 11:10:02 +09:00
Florian Quèze
85611a7b6d
Bug 1331081
- script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
...
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00