Edgar Chen
be79c5bdce
Bug 1359346 - Implement custom element state; r=wchen
...
https://dom.spec.whatwg.org/#concept-element-custom-element-state
MozReview-Commit-ID: TpGVfTEXPj
--HG--
extra : rebase_source : 26c65a4c83eb4f3c0ccb60a3598336c4afcb0247
2016-12-28 11:43:29 +08:00
Jan de Mooij
f480e9ecdf
Bug 1237504 - Refactor proxy slot layout to allow proxies to have more than 2 slots. r=bz,jonco
...
The patch makes the following proxy changes:
* The number of slots in ProxyValueArray is now dynamic and depends on the number of reserved slots we get from the Class.
* "Extra slots" was renamed to "Reserved slots" to make this clearer.
* All proxy Classes now have 2 reserved slots, but it should be easy to change that for proxy Classes that need more than 2 slots.
* Proxies now store a pointer to these slots and this means GetReservedSlot and SetReservedSlot can be used on proxies as well. We no longer need GetReservedOrProxyPrivateSlot and SetReservedOrProxyPrivateSlot.
And some changes to make DOM Proxies work with this:
* We now store the C++ object in the first reserved slot (DOM_OBJECT_SLOT) instead of in the proxy's private slot. This is pretty nice because it matches what we do for non-proxy DOM objects.
* We now store the expando in the proxy's private slot so I removed GetDOMProxyExpandoSlot and changed the IC code to get the expando from the private slot instead.
2017-04-28 14:12:28 +02:00
John Dai
b32e4c240b
Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen. r=bz
...
MozReview-Commit-ID: F1mxKzlru9s
--HG--
extra : rebase_source : a5e52ef2f3168028dec2c3186e857941953ad517
extra : histedit_source : 2336479daf177cb7ca55ee517c8317852bed09ef
2017-03-08 17:11:48 +08:00
Jan de Mooij
76f56574e3
Bug 1342439 part 1 - Replace macros to check for overrecursion with functions. r=luke
2017-02-25 16:07:56 +01:00
Jessica Jong
cf17189117
Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap
2017-02-22 01:00:00 -05:00
Boris Zbarsky
2816ec4748
Bug 1339540 part 2. Move the three ErrorResult-internal NS_ERROR_DOM_* values over to the ErrorResult error module. r=smaug
2017-02-15 00:02:35 -05:00
Boris Zbarsky
a449ccb8fa
Bug 1333045. Update Location object properties to current spec. r=qdot
...
Specifically, three changes:
1) valueOf should be non-enumerable.
2) valueOf should be === to Object.prototype.valueOf.
3) There should be no toJSON.
The tests come directly from https://github.com/w3c/web-platform-tests/pull/4623
so not much need to review them.
2017-02-15 00:01:48 -05:00
Boris Zbarsky
90896220ac
Bug 1330699 part 11. Add ConvertJSValueTo*String functions that just take a value and hand out a string, without extra complications. r=qdot
2017-02-15 00:01:37 -05:00
Andrea Marchesini
16bc4a8d06
Bug 1334564 - Deprecate URL.createObjectURL(mediastream), r=smaug, r=rjesup
2017-02-07 08:58:35 +01:00
Boris Zbarsky
da79ef55fe
Bug 1335368 part 8. Stop using IsCallerChrome in UnwrapArgImpl. r=bholley
2017-02-01 15:43:37 -05:00
Boris Zbarsky
39d50c2647
Bug 1332713 part 4. Make Promise-returning getters return a rejected Promise on exception instead of throwing. r=qdot
2017-01-27 18:53:37 -05:00
Yury Delendik
994e1a0538
Bug 1333796 - Set descriptor value as undefined in XrayResolveAttribute. r=evilpie
...
When property getter is specified the desc's value must the set to undefined --
the desc can be re-used by a caller, so it must be done to preserve this
PropertyDescriptor invariant. We also do this in NativeGetOwnPropertyDescriptor.
MozReview-Commit-ID: 39MCwplbzL3
--HG--
extra : rebase_source : c39e3c6808bed3bcb8a1aa9a8194a89e58338a55
2017-01-25 16:15:09 -06:00
Edgar Chen
881cbd80bd
Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements; r=bz,wchen
...
MozReview-Commit-ID: 6egmavfTmFT
2016-11-17 23:31:50 +08:00
Till Schneidereit
95b8398292
Bug 1322920 - Remove DOM Promise implementation. r=bz
...
MozReview-Commit-ID: 1zzd0x2LNNb
2016-12-14 17:11:48 +01:00
Sebastian Hengst
5e1b29b9c0
Backed out changeset f2a5fc3e8c4e (bug 1274159)
2016-12-14 13:27:22 +01:00
Edgar Chen
da0139302c
Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements; r=bz,wchen
...
MozReview-Commit-ID: 6egmavfTmFT
--HG--
extra : rebase_source : 07436a4b8dfc1960f0cc24b67b8cc5d1e2ffd5cd
2016-11-17 23:31:50 +08:00
Boris Zbarsky
d9af26b7e0
Bug 1321879 part 1. Add an API on GlobalObject to get the caller type, for use in things like WebIDL constructors. r=bholley
2016-12-06 23:41:52 -10:00
Tomislav Jurin
348bfffc19
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Andrea Marchesini
8524257019
Bug 1290021 - Implement a prototype version of Houdini "Worklets Level 1" spec - part 2 - WorkletGlobalScope, r=smaug
2016-11-06 09:54:29 +01:00
Boris Zbarsky
1ef30fd1e4
Bug 1021289 another followup. Make sure that we don't leave an uninitialized opresult when deleting things on DOM objects via Xrays. r=bustage and CLOSED TREE
2016-11-04 15:58:32 -04:00
Boris Zbarsky
598f3f4180
Bug 1021289 part 4. Implement support for WebIDL deleters over Xrays. r=peterv
2016-11-04 12:41:26 -04:00
Ben Kelly
0983850a63
Bug 1303167
P6 Rename new suspend and freeze methods to final names. r=smaug
2016-10-26 10:20:16 -07:00
Ben Kelly
bf0ca72f77
Bug 1303167
P2 Use new window suspend and freeze methods. r=smaug
...
* * *
Bug 1303167
P2 interdiff 0001 Review feedback
2016-10-26 10:20:15 -07: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
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
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
Andrea Marchesini
4077c84f75
Bug 1306222 - Introducing GlobalObject::GetSubjectPrincipal, r=ehsan
2016-09-30 19:54:13 +02:00
Tooru Fujisawa
64346ea2e2
Bug 1289050 - Part 11: Use UTF8 variant of JS_ReportErrorNumberVA. r=jwalden
2016-08-14 20:39:30 +09: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
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
Tom Schuster
55a65363a9
Bug 1299321 - Make DOM/Xray handle string values in JSPropertySpec. r=peterv
2016-09-02 18:39:50 +02:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Igor
175543fda8
Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj
2016-08-14 23:43:21 -07:00
Igor
a57972337d
Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj
2016-08-14 23:44:00 -07:00
Jan de Mooij
5149714d22
Bug 1292892 part 6 - Remove nsContentUtils::RootingCx. r=bz
2016-08-11 14:39:23 +02:00
Jan de Mooij
0ad12515f4
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02:00
Boris Zbarsky
d7821950f4
Bug 1278583 part 5. Switch DOM code from using hasInstance class hooks to using Symbol.hasInstance. r=peterv
2016-08-03 18:32:07 -07:00
Boris Zbarsky
ba5962ed70
Bug 1278583 part 4. Rip out the now-unused construct hook holder bits in bindings. r=peterv
2016-08-03 18:32:06 -07:00
Boris Zbarsky
ab204ba73e
Bug 1278583 part 3. Make static stuff (static attributes, methods, constants) actually work on globals. r=peterv
2016-08-03 18:32:06 -07:00
Tom Schuster
473d3dc22d
Bug 1197324 - Fix new warnings. r=froydnj
2016-08-03 14:37:31 +02:00
Andrew McCreight
e806f57820
Bug 1289136 - Fifth argument to XPCConvert::NativeInterface2JSObject() is always null. r=gabor
2016-07-27 10:11:40 -07:00
Boris Zbarsky
8e34004cf1
Bug 1288791 part 1. Rename the GetParentObject template bits to make it clearer what they're really doing: finding the associated global for an object's native. r=bkelly
2016-07-27 11:05:36 -04:00
Jeff Walden
9251e2a1da
Bug 1285649 - Replace an ellipsis function, whose last non-ellipsis argument was subject to integer promotions, with a variadic template function so as not to invoke C++ undefined behavior, because that would be Bad. r=froydnj
2016-07-20 15:06:48 -07:00
Jeff Walden
d6391c60ea
Backed out changeset 1a2627378a0d, didn't tag the reviewer correctly.
2016-07-26 11:12:21 -07:00
Jeff Walden
b0edcf1fb1
Bug 1285649 - Replace an ellipsis function, whose last non-ellipsis argument was subject to integer promotions, with a variadic template function so as not to invoke C++ undefined behavior, because that would be Bad. NOT REVIEWED YET
...
--HG--
extra : rebase_source : 4b2fe5fbf7baaf599026f916e8969862c053a64c
2016-07-20 15:06:48 -07:00
Carsten "Tomcat" Book
a0992595d6
merge mozilla-inbound to mozilla-central a=merge
2016-07-17 10:08:08 +02:00
Boris Zbarsky
c100c511bf
Bug 933378 part 4. Change the ErrorResult destructor to suppress the exception, after asserting that it's already suppressed. r=bkelly
2016-07-15 22:35:13 -04:00
Boris Zbarsky
e3b8194f3f
Bug 933378 part 1. Introduce a TErrorResult class that will serve as a base class for various ErrorResult-like subclasses. No actual behavior changes so far. r=bkelly
2016-07-15 22:35:13 -04:00
Emilio Cobos Álvarez
12929ea07e
Bug 1224664 - Assert if an ErrorResult is accessed on a thread different than the one it's created on, r=khuey
2016-07-15 22:35:13 -04:00
Carsten "Tomcat" Book
255d05f484
Backed out changeset 03362dd7616d (bug 1224664)
2016-07-16 10:03:12 +02:00