Граф коммитов

1646 Коммитов

Автор SHA1 Сообщение Дата
Dorel Luca f51c4fa5d9 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-27 13:26:49 +03:00
Jean-Yves Avenard f6a7d4ea1a Bug 1471214 - Ensure that DictionaryBase copy constructor is called. r=bzbarsky
Such that a call to dictionary.IsAnyMemberPresent() will return the correct value.

Differential Revision: https://phabricator.services.mozilla.com/D1829
2018-06-26 21:56:45 +00:00
Jeff Gilbert 15f1932c0f Bug 1470325 - Update Codegen.py to emit Foo_Binding instead of FooBinding. - r=bz,qdot
MozReview-Commit-ID: CFIQpIRsXIU
2018-06-26 17:05:01 -07:00
Boris Zbarsky 8dfa5a596c Bug 1466221. Implement ToJSValue variants for non-refcounted (so owned) DOM objects. r=peterv 2018-06-09 01:03:15 -04:00
Jan de Mooij f7fb3be6ec Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Andreea Pavel 4ced6e8b2d Merge mozilla-central to autoland. a=merge 2018-06-03 07:27:01 +03:00
Boris Zbarsky a0ebf6e398 Bug 1465602 part 2. Fix the interaction of default toJSON with Func-controlled exposure that examines the object's global. r=qdot 2018-06-01 12:17:10 -04:00
Jan de Mooij b1ff59e919 Bug 1464374 part 3 - Use GetRealmPrincipals in generated bindings to get subject principal. r=bz 2018-05-31 11:28:49 +02:00
Jan de Mooij ce3eb7d5c0 Bug 1464374 part 2 - Pass JS::Realm* instead of JSCompartment* to CallSetup. r=bz,luke
The principals are on the realm so we need a realm instead of a compartment. Also adds js::GetNonCCWObjectRealm to get the realm of a non-CCW object.
2018-05-31 11:28:48 +02:00
Peter Van der Beken 0a2e4b8cb7 Bug 1146316 - Remove nsWrapperCache::SetIsNotDOMBinding and IsDOMBinding(). r=bz.
--HG--
extra : rebase_source : cd36e7afb4f6ebcd042ea40d9403546a683375ad
2018-04-05 17:22:41 +02:00
Markus Stange f49c17a909 Bug 1462784 - Add a DOM category and use it for the WebIDL binding stack labels. r=njn
MozReview-Commit-ID: AevGMqeBvXO

--HG--
extra : rebase_source : 001056270d8b2df8a7e88e523d1a9612913e27a8
2018-05-18 17:49:55 -04:00
Csoregi Natalia fc2ed6e92a Backed out 18 changesets (bug 1462784) for ESlint failure on FlameGraph.js:1297. CLOSED TREE
Backed out changeset 79556798ff9f (bug 1462784)
Backed out changeset 88321efb673b (bug 1462784)
Backed out changeset 7880f9dc7023 (bug 1462784)
Backed out changeset 71fe35fd1f7e (bug 1462784)
Backed out changeset a543b94b049a (bug 1462784)
Backed out changeset d1ca8b0f2221 (bug 1462784)
Backed out changeset 68eabfbf3c16 (bug 1462784)
Backed out changeset 34e71c789903 (bug 1462784)
Backed out changeset 6fe79d1ca1bd (bug 1462784)
Backed out changeset e5ad2e525ea9 (bug 1462784)
Backed out changeset 329645ff1e23 (bug 1462784)
Backed out changeset e09c38853172 (bug 1462784)
Backed out changeset 0663d1a6d2da (bug 1462784)
Backed out changeset 106967fc29d2 (bug 1462784)
Backed out changeset 99b4a433a8e5 (bug 1462784)
Backed out changeset 1d38a4cf5a4a (bug 1462784)
Backed out changeset 692017229de6 (bug 1462784)
Backed out changeset c2911a626671 (bug 1462784)
2018-06-01 23:42:00 +03:00
Markus Stange 1da5dfa148 Bug 1462784 - Add a DOM category and use it for the WebIDL binding stack labels. r=njn
MozReview-Commit-ID: AevGMqeBvXO

--HG--
extra : rebase_source : 463fd96712fb5b389fd67ce97a3de19f86d37558
2018-05-18 17:49:55 -04:00
Noemi Erli 1fd69fa2bc Backed out 18 changesets (bug 1462784) for failures in devtools/client/performance/test/unit/test_tree-model-08.js on a CLOSED TREE
Backed out changeset a74d36598442 (bug 1462784)
Backed out changeset c8192175f360 (bug 1462784)
Backed out changeset cde492240e99 (bug 1462784)
Backed out changeset 8c8d30fa406c (bug 1462784)
Backed out changeset ad3802ffb780 (bug 1462784)
Backed out changeset 2fe10732076c (bug 1462784)
Backed out changeset 268a72b7c3c4 (bug 1462784)
Backed out changeset 4055eb6c3bc6 (bug 1462784)
Backed out changeset 3901070e2e60 (bug 1462784)
Backed out changeset 2faf787fbbdf (bug 1462784)
Backed out changeset 8f06963c7c6f (bug 1462784)
Backed out changeset 036e6f64e224 (bug 1462784)
Backed out changeset e670f156a603 (bug 1462784)
Backed out changeset cd39588aece4 (bug 1462784)
Backed out changeset 2ac65d100fa2 (bug 1462784)
Backed out changeset ea05ff70a51d (bug 1462784)
Backed out changeset 8a06c0ba42f7 (bug 1462784)
Backed out changeset 52ed9a039ad2 (bug 1462784)
2018-06-01 01:06:29 +03:00
Noemi Erli 614b78ae36 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-01 00:58:09 +03:00
Markus Stange 916fd5a90a Bug 1462784 - Add a DOM category and use it for the WebIDL binding stack labels. r=njn
MozReview-Commit-ID: AevGMqeBvXO

--HG--
extra : rebase_source : 4a1bd948e65cbbd890ba53c363248c1ce69774a3
2018-05-18 17:49:55 -04:00
Boris Zbarsky fd520f957c Bug 1424160 part 2. Add infrastructure for defining @@toStringTag on Web IDL prototypes. r=qdot 2018-05-17 23:45:35 -04:00
Boris Zbarsky 1fb670215a Bug 1424160 part 1. Allow interfaces the have a different name for SpiderMonkey class name purposes. r=qdot
We want to have some class names with spaces in them, but everything assumes
that an interface identifier is in fact an identifier (e.g. uses it in C++
identifiers like namespace names).
2018-05-17 23:45:26 -04:00
Boris Zbarsky bbb35f3bbb Bug 1375829 part 5. Switch from using "jsonifier" syntax to the spec's "[Default] toJSON" syntax. r=qdot 2018-05-17 23:43:59 -04:00
Boris Zbarsky 85cfd5fbdf Bug 1375829 part 2. The default binding toJSON should skip over attributes that are not exposed in the current global. r=qdot
Without this, we will start including mozMemory in performance.toJSON() even if
the pref for it is not set, once 'object' becomes a JSON type.

This changes behavior in the following observable ways:

1) We stop exposing PerformanceResourceTiming's .serverTiming in the JSON
serialization in insecure contexts.

2) We stop exposing PerformanceTiming's timeToNonBlankPaint and
timeToDOMContentFlushed in the JSON serialization unless the relevant
preferences are turned on.
2018-05-17 23:39:52 -04:00
Boris Zbarsky 0e86edbbdf Bug 1375829 part 1. Rename isSerializable() to isJSONType(). r=qdot
The spec calls these types "JSON types".
2018-05-17 23:39:52 -04:00
Jan de Mooij 17f3983d0f Bug 1461605 part 1 - Rename CompartmentOptions to RealmOptions. r=luke,bz 2018-05-17 10:59:45 +02:00
Jan de Mooij 80e44e8003 Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke 2018-05-16 10:53:16 +02:00
Boris Zbarsky 6072982c14 Bug 1456887 part 2. Remove ArrayClass support. r=qdot 2018-04-26 01:38:07 -04:00
Boris Zbarsky 4b6ed4c011 Bug 1456261. Add cycle collection bits for WebIDL dictionaries. r=smaug 2018-04-24 11:57:40 -04:00
Boris Zbarsky da28b690f0 Bug 1453868. Remove redunant setting of globalObj in binding to-promise conversions. r=qdot
MozReview-Commit-ID: BuykeYqTEoF
2018-04-13 19:31:45 -04:00
Boris Zbarsky ed3406b369 Bug 1452786 part 2. Stop using a generated chromeonly isInstance method. r=qdot
This changes semantics in all sorts of ways (e.g. now we get the right proto
from our |this| value instead of it being baked into the function).  But if all
our chrome callers are well-behaved this should be ok.

We _could_ bake the proto id and depth into the function itself by using
js::NewFunctionWithReserved if it were not for Xrays.  Those already need the
reserved slots on functions we Xray.

MozReview-Commit-ID: 1bYrKWWIc1P
2018-04-12 00:06:07 -04:00
Boris Zbarsky e94c1c593e Bug 1452786 part 1. Move the "is chrome" check for installing [ChromeOnly] stuff into the shared CreateInterfaceObjects method. r=qdot
Right now we do this check pretty much always anyway for isInstance... we do it
twice for anything that actually has [ChromeOnly] bits.

MozReview-Commit-ID: FHbYED4FPJe
2018-04-12 00:06:05 -04:00
Boris Zbarsky 1e83f6e69e Bug 1451516 part 8. Remove now-dead handling for cross-origin objects in CastableObjectUnwrapper. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky 024f4366e8 Bug 1451516 part 7. Stop code-generating generic methods. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky e3323859c6 Bug 1451516 part 6. Stop code-generating generic setters. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky 0fc236f464 Bug 1451516 part 5. Stop code-generating generic cross-origin getters. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky 96880eb840 Bug 1451516 part 4. Stop code-generating generic lenient getters. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky d6f68586ee Bug 1451516 part 3. Stop code-generating generic getters for maybe-global objects. r=qdot 2018-04-05 20:29:40 -04:00
Boris Zbarsky e5888e7298 Bug 1451516 part 2. Refactor GenericBindingGetter to make it easier to use in more cases. r=qdot 2018-04-05 20:29:40 -04:00
Boris Zbarsky 2aaacc9bf8 Bug 1451516 part 1. Make it possible to use binding_detail in generated binding code without too much verbosity. r=qdot 2018-04-05 20:29:40 -04:00
Boris Zbarsky 764cd472b6 Bug 1445710. Reduce codesize a bit by removing DOM DefineInterfaceObject methods. r=peterv
MozReview-Commit-ID: 6JRYz4FV9vP
2018-04-04 15:32:19 -04:00
Boris Zbarsky b808305604 Bug 1450182. Remove the EventListenerWasAdded/Removed hooks from DOMEventTargetHelper. r=smaug
MozReview-Commit-ID: GWnAvK61hVT
2018-04-04 15:32:19 -04:00
Boris Zbarsky aa63116f80 Bug 1085062 followup. Actually address the review comments. r=peterv 2018-04-04 14:43:41 -04:00
Boris Zbarsky fe15e92e6b Bug 1085062. Remove hasXPConnectImpls support from bindings codegen. r=peterv 2018-04-04 14:39:52 -04:00
Boris Zbarsky 1ce7e994ba Bug 1450149. Mark Prefable arrays const in bindings codegen. r=qdot 2018-04-03 00:42:40 -04:00
Boris Zbarsky 753e5af2f1 Bug 1446246 part 1. Use a single handwritten HTMLConstructor implementation, instead of code-generating lots of very similar implementations. r=peterv
The codegen changes are mostly a backout of the changes made in bug 1274159.

The HTMLConstructor implementation is mostly copied from one of the
code-generated ones, with a few modifications:

* Derive the interface name from the proto id instead of hardcoding it.
* Use the proto/constructor ids to get constructor and prototype objects.
* Use ErrorResult instead of FastErrorResult; we don't want the precedent of
  using FastErrorResult in non-generated code.

There will be further changes to combine HTMLConstructor and
CreateXULOrHTMLElement, in a separate changeset.

MozReview-Commit-ID: 44D0qw23ioP
2018-03-27 15:49:02 -04:00
Dave Townsend c70f34995e Bug 1421070: Always enable custom elements in chrome. r=smaug, rs=MattN
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.

MozReview-Commit-ID: CMiLzmp60jA

--HG--
extra : rebase_source : 735688061116c633b816f4f9d488712408df11a5
extra : source : 794ee6857d83dfe0b18629c12e96a622fc899586
2017-10-20 11:02:33 -07:00
Boris Zbarsky a245fdf72d Bug 1448397. Make WebIDL QueryInterface chrome-only. r=qdot 2018-03-26 13:35:04 -04:00
Margareta Eliza Balazs 190225b29c Backed out changeset 794ee6857d83 (bug 1421070) for 15 failures in toolkit/components/payments/test/mochitest/test_ObservedPropertiesMixin.html on a CLOSED TREE
--HG--
extra : amend_source : 0574ce1b5b6a6e8735245684eb8e9ec7b0ac2647
2018-03-23 03:42:25 +02:00
Dave Townsend 2626e1c261 Bug 1421070: Always enable custom elements in chrome. r=smaug
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.

MozReview-Commit-ID: CMiLzmp60jA

--HG--
extra : rebase_source : b9632de82cf79c1df15be09fadf1d25817c8a894
extra : amend_source : 235a76453d1d6782903d5051ee8e234b965dcc36
2017-10-20 11:02:33 -07:00
Peter Van der Beken 5ad9618d7c Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 4: Convert MessageManager to WebIDL. r=bz.
--HG--
extra : rebase_source : aa7aa3a5f720b5a4f6ff88e41eb9e80ffb9092cd
2017-06-20 11:09:50 +02:00
Peter Van der Beken ef631ce856 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 1: Add infrastructure to expose 'system' names on a WebIDL global. r=bz.
--HG--
extra : rebase_source : 70d3a641c60968e013f048e6be91f07641e7b81b
2017-07-19 15:04:14 +02:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Emilio Cobos Álvarez 98e6994aaf Bug 1444416: Make bindings generate appropriate MOZ_KnownLive wrappers. r=bz
MozReview-Commit-ID: DBmgwNYVjTM

--HG--
extra : rebase_source : a0866d03686d5ca8aabd954014bf8abb89a419d9
2018-03-09 21:21:59 +01:00