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

48 Коммитов

Автор SHA1 Сообщение Дата
Timothy Guan-tin Chien 2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Andreea Pavel d51566f085 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien c0cc4f74e7 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-14 19:34:52 +00:00
L. David Baron 1e88f0f003 Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert
This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

Differential Revision: https://phabricator.services.mozilla.com/D2974

--HG--
extra : moz-landing-system : lando
2018-08-09 20:10:21 +00:00
Emilio Cobos Álvarez 9509cd7e32 Bug 1453789: Remove Element.createShadowRoot. r=smaug
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
Cameron McCormack 50e51f792c Bug 1025724 - Add some shadow tree style tests. r=bz
MozReview-Commit-ID: 3d9ewWoM8Mo

--HG--
extra : rebase_source : 94bab6722cb793e354df8611f064ef3c9c4056f0
2018-04-05 15:41:10 +08:00
Emilio Cobos Álvarez 48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Emilio Cobos Álvarez f3344c9f7b Bug 1425759: Update test expectations. r=smaug,xidorn
This is enough to get the stylo-enabled build green.

There's still some orange in WPT with stylo disabled (due to interfaces not
exposed and that) that I'll update tomorrow.

Will send a different patch on top of this for that, though I'll land together.

MozReview-Commit-ID: CsN5CM93RUz
2018-02-27 12:39:58 +01:00
Jessica Jong 4bee56a645 Bug 1428685 - Use dom.webcomponents.shadowdom.enabled pref for Shadow DOM. r=smaug
Most of the Shadow DOM related code are behind "dom.webcomponents.enabled" and
this pref is only used by Shadow DOM right now, so we should rename it to
"dom.webcomponents.shadowdom.enabled"

MozReview-Commit-ID: er1c7AsSSW
2018-01-16 17:16:30 +01:00
Jessica Jong bdf8958759 Bug 1409975 - Part 4: Update and add reftests for Shadow DOM v1. r=emilio
--HG--
rename : layout/reftests/webcomponents/basic-insertion-point-1-ref.html => layout/reftests/webcomponents/basic-slot-5-ref.html
rename : layout/reftests/webcomponents/basic-insertion-point-1.html => layout/reftests/webcomponents/basic-slot-5.html
rename : layout/reftests/webcomponents/basic-insertion-point-2-ref.html => layout/reftests/webcomponents/basic-slot-6-ref.html
rename : layout/reftests/webcomponents/basic-insertion-point-2.html => layout/reftests/webcomponents/basic-slot-6.html
2017-12-04 16:06:42 +08:00
Olli Pettay af3373dc1d Bug 1418002 - Remove HTMLContentElement, r=jessica 2017-11-30 10:57:15 +02:00
Emilio Cobos Álvarez 0555fa0126 Bug 1412251: Make style sharing look at XBL / Shadow DOM rules. r=bz
MozReview-Commit-ID: II6lk6OmSZU
2017-10-28 14:20:21 +02:00
Sebastian Hengst ae82a0f6ff Backed out changeset 13dfed0f47dc (bug 1412251) for failing reftest layout/reftests/bugs/272646-1.xul on OS X. r=backout
--HG--
extra : amend_source : 2f0e04224a6af7848f081fa99fcb706153934747
2017-10-28 10:06:25 +02:00
Emilio Cobos Álvarez e907c7a1da Bug 1412251: Make style sharing look at XBL / Shadow DOM rules. r=bz
MozReview-Commit-ID: II6lk6OmSZU

--HG--
extra : rebase_source : 44af7047387b26f63b3960d9e1f4996f6677ad18
2017-10-28 01:48:08 +02:00
Emilio Cobos Álvarez b6274da28b Bug 1404789: Get the insertion point right when reconstructing direct children of a shadow root. r=bz
MozReview-Commit-ID: 2Xlke5ujt2Q

--HG--
extra : rebase_source : 8289fd14efaf941a46e339919ae04c16f4de2840
2017-10-18 19:41:17 +02: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 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
Makoto Kato 376ad42ea3 Bug 1404178 - Fix some reftest conditions for Stylo on Android. r=heycam
Even if Stylo on Android, the following is successful.

- unit-vh-vw-overflow-scroll.html
- unit-vh-vw-overflow-scroll-x.html
- unit-vh-vw-overflow-scroll-y.html

- Although we use fails-if(stylo|styloVsGecko), since last condition is
fuzzy-if(Android,...), android's reftest uses fuzzy-if unfortunately.
We should modify fuzzy-if's order to pass reftest for Stylo on Android.

- input-transition-1.html

MozReview-Commit-ID: 12mRwJW67Nz

--HG--
extra : rebase_source : 1ffcfe7024846b65e3f0e5d9ad8a1053e66d9c86
2017-09-27 16:27:19 +09: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
Louis Chang 78d17c53f3 Bug 1352238 Part 8 - Make fuzzy and unexpected tests passed. r=mats
MozReview-Commit-ID: 5j2xeZ0VHW6

--HG--
extra : rebase_source : 7bd906afb65c8d44ec564979bb92d8fe741f0c2d
2017-09-05 22:47:09 +08:00
Cameron McCormack ea96847844 Bug 1373155 - Disable Web Components in Servo-styled documents. r=wchen
MozReview-Commit-ID: 5IBBN2Gfazs

--HG--
extra : rebase_source : 832174c4b30627b77d247a762c0a525b3afb7885
2017-06-15 19:39:58 +08:00
Shing Lyu c729f26a66 Bug 1367636 - Update stylo-vs-stylo reftest expectations. r=heycam
MozReview-Commit-ID: DVO2R2RQuiK
2017-05-25 16:44:44 +08:00
Shing Lyu 5d8a5a598c Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron
MozReview-Commit-ID: 3ekoU1zg8xA

--HG--
extra : rebase_source : f62c84516f5ac0d4b4d0c876514b72fa786ec542
2017-05-25 11:26:12 +08:00
Shing Lyu c46f5d5baf Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: 8LoQ9xNnDnj
2017-04-28 11:15:58 +08:00
Shing Lyu 435db45b79 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-28 11:15:50 +08:00
Sebastian Hengst ceff3b0678 Backed out changeset 1f9d0f8e65b9 (bug 1351548) 2017-04-26 13:13:05 +02:00
Sebastian Hengst f46ebb0d94 Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Shing Lyu 96b400c04a Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Shing Lyu dae014d9d5 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-26 18:21:43 +08:00
Mats Palmgren 0f05af4ad2 Bug 1339062 - Wallpaper an orange failure by delaying the snapshot for 1s. r=me
--HG--
extra : rebase_source : 5fa2af7055f0363c74f7e29bb59c364aed23f677
2017-03-14 07:18:00 -04:00
Boris Zbarsky daecf0ebce Reenable various stylo reftests that set preferences. No bug. r=bzbarsky
MozReview-Commit-ID: F57DNYfpRA5
2017-02-23 18:17:59 -05:00
Shing Lyu 39ec052547 Bug 1331860 - Update reftest-stylo expectations. r=heycam
--HG--
extra : rebase_source : 2c39a745949d3dfeb369f0e1efbf4befde8535c9
2017-01-12 10:37:36 +08: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
Shing Lyu 11a1d3e940 Bug 1328825 - Update reftest-stylo.list and expectations. r=heycam
MozReview-Commit-ID: AMwdk5wvM0F
2017-01-10 15:50:59 +08:00
Sebastian Hengst d5b0b02195 Bug 1307332 - Remove B2G and Mulet annotations from reftest.list: layout/reftests/webcomponents. r=dholbert
MozReview-Commit-ID: E84uduRFwxi
2016-10-09 09:51:34 +02:00
Shing Lyu db11558e50 Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth
--HG--
extra : rebase_source : 4772418bd2813d4e79643a833eb09e47fe893d84
2016-09-05 11:45:39 +08:00
Alexandre Lissy e8b4f395c0 Bug 1138442 - Disable reftests on Mulet in parity with B2G/B2G Desktop. r=ahal 2015-03-10 02:43:00 +01:00
William Chen 11d279ad66 Bug 1076784 - Don't remove binding when shadow root host is removed from tree. r=smaug 2014-10-03 18:32:05 -07:00
William Chen b120db058e Bug 1022866 - Fix insertion point frame for content distributed to insertion points. r=bz 2014-08-04 21:37:25 -07:00
CJKu 9691cf3136 Bug 1000722 - Rollback close reftest in bug 981477. r=ahal 2014-06-24 10:20:00 -04:00
William Chen 4118b653d4 Bug 1022741 - Use CrossShadowCurrentDoc() in Element::UpdateState. r=smaug 2014-06-10 14:41:31 -07:00
William Chen 20ba3e7f6c Bug 1007743 - Update flattened tree to correctly handle nodes distributed into Shadow DOM insertion points. r=smaug 2014-06-05 11:39:25 -07:00
Carsten "Tomcat" Book 2e97d854e8 Backed out changeset 58541e1f52d2 (bug 1007743) 2014-06-04 08:55:33 +02:00
William Chen b4290f2bb8 Bug 1007743 - Update flattened tree to correctly handle nodes distributed into Shadow DOM insertion points. r=smaug 2014-06-03 16:09:41 -07:00
Vincent Chen c53b5f77a8 Bug 981477 - Disable B2G emulator reftests that fail oop, r=ahal 2014-05-23 15:56:15 -04:00
William Chen a77e9ae737 Bug 887538 - Implement web components shadow element. r=mrbkap 2013-12-20 22:43:58 -08:00
William Chen b92be20c45 Bug 854736 - Implement HTML content element. r=mrbkap 2013-12-02 02:26:12 -08:00
William Chen d22dcd56b5 Bug 806506 - Part 1: Implement ShadowRoot interface with DOM accessor methods. r=mrbkap,ehsan 2013-12-02 02:26:11 -08:00