Boris Zbarsky
4d59f9aa76
Bug 1309239. Fix the codegen for a cached DOM getter to not worry about Xrays if the interface doesn't want Xrays (i.e. is not mainthread-exposed). r=baku
2016-10-11 10:32:37 -04:00
Boris Zbarsky
3f10f5ed57
Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
...
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.
The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits. Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Boris Zbarsky
695f3ad671
Bug 946906 part 9. Add tests for the new [Cached] setup on Xrays. r=bholley
2016-10-10 18:16:26 -04:00
Boris Zbarsky
13514334ba
Bug 946906 part 8. When getting a cacheable property off a DOM Xray, cache it on the Xray's expando object. r=bholley
2016-10-10 18:16:26 -04:00
Boris Zbarsky
13a81b596c
Bug 946906 part 7. Forbid using [Cached] or [StoreInSlot] with [NewObject]. r=bholley
...
This guarantees that an interface type returned from a [Cached] or [StoreInSlot]
getter must be wrappercached, because non-wrappercached things can only be
returned from [NewObject] getters or methods.
2016-10-10 18:16:26 -04:00
Boris Zbarsky
fba67a8141
Bug 946906 part 6. Clear the relevant slots on Xray expandos when clearing cached slots on a DOM object. r=bholley
2016-10-10 18:16:26 -04:00
Boris Zbarsky
8070de70a2
Bug 946906 part 5. Use the codegenned JSClass, if available, when creating Xray expando objects. r=bholley
2016-10-10 18:16:26 -04:00
Boris Zbarsky
bb0814b5d3
Bug 946906 part 4. Codegen Xray expando JSClasses for DOM objects with [Cached] or [StoreInSlot] members. r=bholley
2016-10-10 18:16:26 -04:00
Boris Zbarsky
7f2945874f
Bug 946906 part 3. Create a macro for declaring Xray expando classes, and move the default Xray expand class definition to bindings code. r=bholley
2016-10-10 18:16:25 -04:00
Michelangelo De Simone
3e5861c1f3
Bug 1306772 - Remove DOM/cellbroadcast and related code. r=jst
...
MozReview-Commit-ID: EWBjamnhAyC
--HG--
extra : rebase_source : 84bc99a7fd0f9d74b5b25d3ddc295c132e51d987
2016-09-30 16:03:21 -07:00
Jon Coppeard
38b109439a
Bug 1307372 - Avoid triggering mCallback read barrier in CallbackObject::CallbackKnownNotGray r=mccr8
2016-10-05 10:09:24 +02:00
Boris Zbarsky
010d3de058
Bug 1307115. Improve error reporting on name collisions in webidl. r=qdot
2016-10-04 23:42:06 -04:00
Stone Shih
d76caea5e4
Bug 1292063 - Part 1: Add Event.composed. r=smaug
...
--HG--
extra : rebase_source : 105f9cfddb083d48d3da25fa13bf9a3b4c2637f6
2016-08-31 11:16:11 +08:00
Andrea Marchesini
4077c84f75
Bug 1306222 - Introducing GlobalObject::GetSubjectPrincipal, r=ehsan
2016-09-30 19:54:13 +02:00
Terrence Cole
0edc10380c
Bug 1297558 - Use a read barrier on Heap to ExposeToActiveJS r=sfink r=mccr8
2016-02-07 09:08:55 -08:00
Tooru Fujisawa
d7c8c69a03
Bug 1290337 - Part 17: Replace Value parameter to const Value& in dom/bindings. r=smaug
2016-09-11 18:15:24 +09:00
Tooru Fujisawa
e0c7801dc3
Bug 1290337 - Part 13: Replace Value parameter to const Value& in finalizeInBackground. r=sfink
2016-09-11 18:15:23 +09:00
Tooru Fujisawa
64346ea2e2
Bug 1289050 - Part 11: Use UTF8 variant of JS_ReportErrorNumberVA. r=jwalden
2016-08-14 20:39:30 +09:00
Jon Coppeard
591ec11f61
Bug 1305236 - Don't call ExposeObjectToActiveJS on null pointer r=smaug
2016-09-29 10:18:50 +01:00
Andrea Marchesini
47e3640d27
Bug 1297393 - Make passing of subject principals to webidl entry points explicit - part 1 - WebIDL [NeedsSubjectPrincipal], r=ehsan, r=peterv
2016-09-29 08:55:19 +02:00
Boris Zbarsky
2e60934ea9
Bug 1304516. Remove mention of nsIInputStreamCallback from WebIDL stuff, since it's not used there. r=bkelly
2016-09-29 00:28:27 -04:00
Tooru Fujisawa
6d493d48ec
Bug 1289050 - Part 1: Use ASCII variant of JS_ReportError in simple case. r=jwalden
2016-08-14 20:39:28 +09:00
Tooru Fujisawa
fd9e045dcb
Bug 1304970 - Check encoding of js.msg-like files. r=jandem,gps
2016-09-28 14:12:54 +09:00
Carsten "Tomcat" Book
a65e4225ef
merge mozilla-inbound to mozilla-central a=merge
2016-09-23 12:05:53 +02:00
Andi-Bogdan Postelnicu
0a7e6c2c05
Bug 1302442 - Add ignore-initialization-check annotation to class member variables constructed by Codegen. r=peterv
...
MozReview-Commit-ID: 2vd6EELGSSj
--HG--
extra : rebase_source : 810b61ea983b8a2636130f488c13b1ee61996aef
2016-09-20 15:11:08 +03:00
Boris Zbarsky
4d0f8a0705
Bug 1302858. Remove unnecessary JS_WrapValue from dom::MaybeWrapObjectValue. r=peterv
2016-09-20 13:25:05 +01:00
Boris Zbarsky
87d24a4a1d
Bug 1297304. Fix our named property DOM proxy code to handle deletion correctly when expandos are involved. r=peterv
2016-09-20 13:24:34 +01:00
Boris Zbarsky
7afde49b04
Bug 1096267. Stop calling into the nsIInputStream overload of XMLHttpRequest.send() if a random object is passed in (except in chrome code, where we will keep doing that). r=smaug
2016-09-22 16:58:37 +01:00
Boris Zbarsky
5afc8a9e03
Bug 1294747. Make sure we expose the expando of a [OverrideBuiltins] proxy to active JS when it gets cleared from the proxy. r=peterv
...
This should also fix bug 1296775 and bug 1290359.
There's a very good chance it will also fix bug 1293386, bug 1292855, bug
1289452, and bug 1303340: those would get hit if we happened to start _another_
gc after the expando died but while it was still in the Rooted. All of them
seem to be dying under the domClass->mGetProto call, which could finish up a GC
that kills the expando and then do _another_ one, causing the Rooted to try to
mark a dead object.
2016-09-15 15:04:56 -04:00
Andrea Marchesini
56c54a3930
Bug 1302987 - Rename nsLocation to mozilla::dom::Location, r=smaug
...
--HG--
rename : dom/base/nsLocation.cpp => dom/base/Location.cpp
rename : dom/base/nsLocation.h => dom/base/Location.h
2016-09-16 09:18:18 +02:00
Phil Ringnalda
c4610bd093
Backed out changeset a4ef0b5b78cb (bug 1294747) for debug Android jsreftest crashes
...
CLOSED TREE
2016-09-15 20:47:39 -07:00
Boris Zbarsky
f671eef0e3
Bug 1303099. LenientFloat handling should not prevent all arguments being processed; instead it should just cause an early return right after argument processing. r=qdot
2016-09-15 17:10:59 -04:00
Boris Zbarsky
19ceff9c07
Bug 1294747. Make sure we expose the expando of a [OverrideBuiltins] proxy to active JS when it gets cleared from the proxy. r=terrence
...
This should also fix bug 1296775 and bug 1290359.
There's a very good chance it will also fix bug 1293386, bug 1292855, and bug
1289452: those would get hit if we happened to start _another_ gc after the
expando died but while it was still in the Rooted. All of them seem to be
dying under the domClass->mGetProto call, which could finish up a GC that kills
the expando and then do _another_ one, causing the Rooted to try to mark a dead
object.
2016-09-15 15:04:56 -04:00
Jan de Mooij
a53986bf29
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
...
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Mike Hommey
935ad653b8
Bug 1299919 - Set CPP/CXXCPP from python configure. r=chmanchester
2016-09-13 13:25:18 +09:00
Tom Tung
a167b66e90
Bug 1187335 - P4 - Integrate fetch and cache with SRI & add nsIConsoleReportCollector to show console report. r=bkelly.
2016-09-07 10:20:23 +08:00
Carsten "Tomcat" Book
7c6c7db247
Merge mozilla-central to autoland
2016-09-07 17:26:11 +02:00
Andi-Bogdan Postelnicu
1ccbe1644f
Bug 1301033 - add assert cx on generated code in order to prevent false-positive from static analysis tools. r=baku
...
MozReview-Commit-ID: ELTP8E3zRNf
--HG--
extra : rebase_source : e50e2bbb7414b44a38c4bfbbad976ad65c516394
2016-09-07 15:32:02 +03:00
Boris Chiou
adeea43b3b
Bug 1274944 - Part 1: Add writable spacing attribute. r=smaug
...
Use [SetterThrows] for KeyframeEffect.spacing because it throws if the input
string is not conformed to the grammar.
MozReview-Commit-ID: CkAnPu8TnV
--HG--
extra : rebase_source : af0960391684323a25ac0b40da28dcbe5c3c2919
2016-08-31 16:58:57 +08:00
Boris Zbarsky
40a43f8a00
Bug 1299306 part 2. Call JS_SetImmutablePrototype on Location instances to make their prototype immutable in a more spec-compliant way. r=peterv
2016-09-02 17:55:38 -04:00
Boris Zbarsky
8aef9d0ce9
Bug 1299306 part 1. Refactor the error handling in CGWrapNonWrapperCacheMethod and CGWrapWithCacheMethod to have less duplication. r=peterv
2016-09-02 17:55:38 -04:00
Boris Zbarsky
10a9e4c620
Bug 1297717. Stop using an unforgeable holder for global objects with unforgeable properties, since it's just pure slowdown in that case. r=peterv
2016-09-02 17:55:38 -04:00
Tom Schuster
55a65363a9
Bug 1299321 - Make DOM/Xray handle string values in JSPropertySpec. r=peterv
2016-09-02 18:39:50 +02:00
Edgar Chen
eaa3aed9dd
Bug 1275835 - Part 2: Implement CustomElementsRegistry define function; r=wchen
...
MozReview-Commit-ID: 10NPmzTRogc
--HG--
extra : rebase_source : 9f4b5b79f1ef4d65a457066b079a338fd3895c40
2016-09-01 15:11:32 +08:00
John Dai
afa50be601
Bug 1294100 - Part 3: Modify Codegen to generate including FakeString's binding files and fix build errors. r=bz
...
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/FakeString.h
2016-09-01 18:10:54 +08:00
Boris Zbarsky
37ce88ab1c
Bug 1298410. Remove support for IDL arrays, since those are not a thing anymore. r=peterv
2016-09-01 21:31:23 -04:00
Gabriele Svelto
fe73634c76
Bug 1296579 - Remove the SimplePush API r=kitcambridge,baku
2016-09-01 20:17:03 +02:00
Boris Zbarsky
e8c8715cfb
Bug 1297756
part 2. Allow specifying a default value for a union containing an enum. r=mystor
2016-08-30 12:55:17 -04:00
Boris Zbarsky
1e5fa72546
Bug 1297756
part 1. Improve the exception thrown when an invalid default value (right type but wrong value) is used for a union. r=mystor
2016-08-30 12:55:15 -04:00
Michael Layzell
164944c0c0
Bug 1292293 - Part 1: Update the WebIDL Parser to allow default values for ByteString, r=bz
...
--HG--
extra : rebase_source : 8d031a5a34e4bb75a3432e23e625370cbcea0dae
2016-08-05 17:46:54 -04:00