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

97 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen 821531562b Bug 1428244 - Part 2: Set correct oldValue/newValue for the attributeChangedCallback which is fired from style attribute change; r=smaug
MozReview-Commit-ID: 4l6XuCUHUh8

--HG--
extra : rebase_source : 23d825684dbd47ca125cd8468d2c8d22425e3cdf
2017-12-15 11:52:07 -06:00
Jessica Jong 1133de96d2 Bug 1398981 - Turn off webcomponents pref by default when running tests. r=smaug 2018-01-05 16:17:38 +08:00
Olli Pettay af3373dc1d Bug 1418002 - Remove HTMLContentElement, r=jessica 2017-11-30 10:57:15 +02:00
Edgar Chen 9f4324f41e Bug 1416999 - Remove document.registerElement; r=smaug
MozReview-Commit-ID: HiX07Vbljhk

--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Dave Townsend 27380b996e Bug 1404420: Add custom element support to XUL. r=edgar, r=smaug
MozReview-Commit-ID: BietEX2gOoG

--HG--
extra : rebase_source : 6fd9a732a21f2c048d37c3f7139cd18503148767
2017-10-10 15:25:10 -07:00
John Dai 05cb887de2 Bug 1407669 - Fix custom element creation hides uncatchable exceptions from the constructor. f=echen, r=bz
--HG--
extra : rebase_source : 6d871d6b4c959e0e9fbc34bd8d14d45678badd35
2017-11-21 20:46:00 -05:00
Edgar Chen 9805853065 Bug 1390396 - Reenable mochitests for custom elements lifecycle callbacks; r=smaug
Attribute changed callback now is fired only when the attribute is in observedAttributes list
which is introduced in latest spec, so in this patch, we change the tests for attribute changed
callback to use customElements.define() to register customElements definition instead.

MozReview-Commit-ID: 2s1qj3UsFUS

--HG--
rename : dom/tests/mochitest/webcomponents/test_document_register_lifecycle.html => dom/tests/mochitest/webcomponents/test_custom_element_lifecycle.html
rename : dom/tests/mochitest/webcomponents/test_document_register_stack.html => dom/tests/mochitest/webcomponents/test_custom_element_stack.html
extra : rebase_source : f37c52c8c6ffa80439692d4ba6a8b1a6888e20f2
2017-10-03 17:22:58 +08:00
Emilio Cobos Álvarez 58e187e074 Bug 1418560: Disable test_content_element.html. r=smaug
MozReview-Commit-ID: 6YhSlRDoUm5
2017-11-20 17:34:49 +01:00
Edgar Chen 698fdbc62e Bug 1396620 - Part 1: Remove created callback for custom elements; r=jdai,smaug
MozReview-Commit-ID: IDovq3OZwgy

--HG--
extra : rebase_source : bae891833d4f8139fed2ed31af85173694c7eb11
2017-10-13 23:36:54 +08:00
Ciure Andrei 92d28bd8f2 Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
John Dai a710f595fa Bug 1406325 - Part 5: Implement try to upgrade. f=echen, r=smaug 2017-11-14 19:25:00 +08:00
arthur.iakab cb136d6136 Backed out changeset ed0cc9f86583::b6b642efbb74 (bug 1396620) for static failure at dom/base/CustomElementRegistry.cpp r=backout on a CLOSED TREE
Backed out changeset b6b642efbb74 (bug 1396620)
Backed out changeset ed0cc9f86583 (bug 1396620)
2017-11-17 01:22:14 +02:00
Edgar Chen fd6b408209 Bug 1396620 - Part 1: Remove created callback for custom elements; r=jdai,smaug
MozReview-Commit-ID: IDovq3OZwgy

--HG--
extra : rebase_source : 34b67e07a7e15af815c6921a41272ee0fddfb93d
2017-10-13 23:36:54 +08:00
Edgar Chen 64dec8edc1 Bug 1400762 - Make dom.webcomponents.enabled pref doesn't control CustomElements feature; r=smaug
CustomElements feature now is only controlled by dom.webcomponents.customelements.enabled pref.

MozReview-Commit-ID: G6hdIAsSeX7

--HG--
extra : rebase_source : 064349a0319e445e4bcd6bfbdcd69b7085c347b6
2017-11-15 15:41:14 +08:00
Jessica Jong f783bf3a95 Bug 1378079 - Part 3: Complete the steps related to custom elements in "create an element for a token". r=hsivonen,smaug
--HG--
extra : rebase_source : c393051fc6f025ff4c013b5349b53c8a5ba2c3c4
2017-10-26 14:55:41 +08:00
Emilio Cobos Álvarez b371f16b3f Bug 1404789: Update test expectations. r=bz
MozReview-Commit-ID: 6juwgWa4OVN

--HG--
extra : rebase_source : b87fa7013e6ca894f0b06e07e7778e6b5ba3ce88
2017-10-18 11:31:18 +02:00
Emilio Cobos Álvarez 96fe568618 Bug 1404789: Remove shadow tree hacks in the frame constructor. r=bz
Turns out that the patches in bug 1398448 fixed most of the layout stuff.

There's a GeckoRestyleManager assertion in test_shadowroot_style.html about
document mismatches while restyling, which looks scary, but I haven't
investigated (nor plan to, since that code is hopefully going away soon).

MozReview-Commit-ID: 4km5NCr5xp2

--HG--
extra : rebase_source : 32eef715d6509f25449edb967dee8ac6f18c5f84
2017-10-11 13:51:05 +02:00
Emilio Cobos Álvarez 0e037f3704 Bug 1409079: followup: Skip test also in release and add shell null-check. r=me
MozReview-Commit-ID: G2KA2eNyrH0
2017-10-17 20:02:04 +02:00
Emilio Cobos Álvarez c021ca02b5 Bug 1409079: Re-enable web components in stylo. r=heycam,smaug
MozReview-Commit-ID: DJZRO7j2pOJ

--HG--
extra : rebase_source : c6e39755b7dd324ca8ae77b6d8a8868d913c930b
2017-10-12 15:22:17 +02:00
Edgar Chen f7287bd6f0 Bug 1405335 - Remove custom element attached and detached callbacks validation checks; r=smaug
--HG--
extra : rebase_source : 996ff7abec24b3576e01003da829b18acb8672d8
2017-10-03 22:00:04 +08:00
John Dai e0d9953f52 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-10-03 01:34:00 -04:00
Wes Kocher fee639d976 Backed out changeset 29a6664e8f73 (bug 1319342) for wpt failures in Node-cloneNode.html a=backout
MozReview-Commit-ID: 2FoC3zDqXO2
2017-10-02 14:27:09 -07:00
John Dai c76b412976 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-10-01 23:12:00 -04:00
Jessica Jong a6eb129783 Bug 1334043 - Part 3: Update tests for connected callback. r=smaug
MozReview-Commit-ID: LSSRDvNv59e
2017-09-26 13:56:03 +08:00
Olli Pettay c80e124562 Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap
--HG--
extra : rebase_source : 2bb600ed1ffd35c195617a7eb70d0ba847a46898
2017-09-25 18:09:26 +03:00
John Dai 7dd3d219db Bug 1301024 - Part 4: Update wpt and mochitest tests. r=smaug 2017-09-25 01:35:00 -04:00
Jessica Jong 18378d0e3a Bug 1334051 - Part 2: Invoke attributeChangedCallback only if attribute name is in the observed attribute list. f=jdai, r=smaug
We call attributeChangedCallback in two cases:
1. When any of the attributes in the observed attribute list has changed,
   appended, removed, or replaced.
2. When upgrading an element, for each attribute in element's attribute list
   that is in the observed attribute list.

MozReview-Commit-ID: LKUY5ibp9RI
* * *
Bug 1334051 - Part 3: Optimize attributeChanged callbacks. r=smaug
2017-08-27 23:25:00 -04:00
John Dai 5abb05dc54 Bug 1299363 - Part 6: Add tests for custom element upgrade. r=wchen
MozReview-Commit-ID: HsmtLzg9qP5

--HG--
extra : rebase_source : 99e670bd2a08b02f68818bfca5a410625e5aa7ee
extra : histedit_source : 669c2d72773079d6b0f24da012f5cde1444c898c
2017-08-13 16:40:49 +08:00
Xidorn Quan 4a92d308fc Bug 1374872 - Disable tests involving web components for stylo. r=wchen
MozReview-Commit-ID: JWA210RkpAW

--HG--
extra : rebase_source : cd2a4ed75b43d500bf3a6e1e49eccb1bd38ed777
2017-06-21 14:51:37 +10:00
John Dai b6b41eca6c Bug 1315885 - Part 4: Implement callback reaction for custom element reactions. r=wchen
--HG--
extra : rebase_source : 0ccd628ce1f0904bf2d412ade2710c6e1203641e
2017-07-18 20:30:00 -04:00
Dragana Damjanovic dd.mozilla@gmail.com 4a4943b2d5 Bug 1222633 - Add rel=preload - tests. r=smaug 2017-07-10 15:05:48 +02:00
Edgar Chen 0a24632278 Bug 1354013 - Creating customized built-in elements without relevant definitions registered first shouldn't throw NotFoundError; r=wchen
per spec change: https://github.com/w3c/webcomponents/issues/608

MozReview-Commit-ID: 3W4qTndQsP7
2017-04-06 17:00:41 +08:00
Florian Quèze 9d62681259 Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
Florian Quèze 2cf30507bd Bug 1334261 - script-generated patch to remove more newURI null parameters, r=jaws. 2017-01-27 10:51:02 +01: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
John Dai 9404a1745d Bug 1269155 - Revise Node.rootNode to Node.getRootNode. r=smaug 2017-01-16 01:46:00 +08:00
Edgar Chen 267e044ff4 Bug 1274159 - Part 4: Add test cases for HTMLConstructor; r=bz,wchen
MozReview-Commit-ID: DCLMBz2nZB0
2016-12-01 14:35:21 +08:00
Edgar Chen 8a160d47da Bug 1318630 - Part 2: Create correct html element object when "is" is specified for custom element; r=wchen
MozReview-Commit-ID: B7cEhy5ZqL3
2016-12-08 09:33:44 -10:00
Sebastian Hengst b9b9b83d86 Backed out changeset 86d70a2e93e1 (bug 1274159) 2016-12-14 13:27:10 +01:00
Edgar Chen 4ce7b6c291 Bug 1274159 - Part 4: Add test cases for HTMLConstructor; r=bz,wchen
MozReview-Commit-ID: DCLMBz2nZB0

--HG--
extra : rebase_source : c402b7a63943e8601bc2f767bcc8b65de312813f
2016-12-01 14:35:21 +08:00
John Dai efa715302c Bug 1275839 - Implement CustomElementsRegistry whenDefined function. r=wchen 2016-10-07 02:16:00 -04:00
Stone Shih 7b63299a94 Bug 1292063 - Part 2: Add composed argument to getEventTargetChainFor and refine test cases. r=smaug
--HG--
extra : rebase_source : 221e1bd75cfa3ab1c8ef435e8e87c5a6f56b82aa
2016-09-13 17:29:08 +08:00
John Dai 18aca2998b Bug 1275838 - Implement CustomElementsRegistry get function. r=smaug, r=wchen 2016-09-21 19:40:00 -04: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
Edgar Chen 67946850ab Bug 1275835 - Part 1: Move custom element codes from nsDocument to CustomElementsRegistry; r=wchen
MozReview-Commit-ID: 9gTSFrYW7o3

--HG--
extra : rebase_source : f123f21aadaa18641ddd7fa7fa67eb27a4152f83
2016-08-30 11:48:53 +08:00
John Dai 0ff1457b76 Bug 1274505 - Remove SVG-based custom element support. r=wchen
--HG--
extra : rebase_source : a2caaa0fc1a49ca989dafc9e73c55ad752b83752
2016-07-26 00:35:00 -04:00
Jocelyn Liu 9420e6fa26 Bug 1276579: Add 'options' argument into |document.createElement[NS]()| methods and remove overloaded |createElement[NS]()| methods. r=smaug,wchen
MozReview-Commit-ID: FWd6g33SSiR

--HG--
extra : rebase_source : 1b62a987d66952ea420e10e8350399cd26b5511d
2016-06-06 18:43:39 +08:00
Jocelyn Liu 36d3b49b3a Bug 1276240 - Ignore typeExtension argument if the value is null or undefined. r=smaug
MozReview-Commit-ID: 4ZeySrIpgFr

--HG--
extra : rebase_source : 36d230e041b01622110027e00c7b0eb1188454ed
2016-06-28 17:07:32 +08:00
Dragana Damjanovic 5031bdb80e Bug 580313 - New resource hints for link. r=smaug
--HG--
extra : rebase_source : 5ce4ef05217f6d513052f83a7e18b00d1596417a
2016-02-26 02:41:00 +01:00
Sam E. Giles 549f18c617 Bug 1177991 - document.adoptNode should throw a HierarchyRequestError when adopting a ShadowRoot. r=wchen
--HG--
extra : rebase_source : fc2856c53f0a676ce0113b1014778e253270c185
2015-07-17 11:12:02 -07:00