Skip to content

Commit

Permalink
Bug 1610981 - Add a separate pref for CSSPseudoElement. r=smaug
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D63014

--HG--
extra : moz-landing-system : lando
  • Loading branch information
BorisChiou committed Feb 18, 2020
1 parent 4f3959b commit 51dc660
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dom/tests/mochitest/general/mochitest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[DEFAULT]
prefs =
dom.css_pseudo_element.enabled=true
support-files =
497633.html
fail.png
Expand Down
2 changes: 1 addition & 1 deletion dom/webidl/CSSPseudoElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* liability, trademark and document use rules apply.
*/

[Func="Document::IsWebAnimationsGetAnimationsEnabled",
[Pref="dom.css_pseudo_element.enabled",
Exposed=Window]
interface CSSPseudoElement {
readonly attribute DOMString type;
Expand Down
6 changes: 6 additions & 0 deletions modules/libpref/init/StaticPrefList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,12 @@
value: true
mirror: always

# Is support for CSSPseudoElement enabled?
- name: dom.css_pseudo_element.enabled
type: bool
value: false
mirror: always

# Any how many seconds we allow external protocol URLs in iframe when not in
# single events
- name: dom.delay.block_external_protocol_in_iframes
Expand Down
1 change: 1 addition & 0 deletions testing/web-platform/meta/css/css-pseudo/__dir__.ini
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
leak-threshold: [tab:51200]
prefs: [dom.css_pseudo_element.enabled:true]

0 comments on commit 51dc660

Please sign in to comment.