Bug 1316347 - Only expose the HTMLShadowElement and HTMLContentElement interfaces when web components are enabled. r=smaug
authorWilliam Chen <wchen@mozilla.com>
Wed, 09 Nov 2016 14:41:25 -0800
changeset 437672 53c441f68990de42869a32303a79e1747990e0f2
parent 437671 bb7bc01deac5bf711297e216328e640aeb729895
child 437673 ca77916dbaef9b01126a96d8c222a3942a8e4cdf
push id35485
push userbmo:afarre@mozilla.com
push dateFri, 11 Nov 2016 11:07:43 +0000
reviewerssmaug
bugs1316347
milestone52.0a1
Bug 1316347 - Only expose the HTMLShadowElement and HTMLContentElement interfaces when web components are enabled. r=smaug
dom/webidl/HTMLContentElement.webidl
dom/webidl/HTMLShadowElement.webidl
--- a/dom/webidl/HTMLContentElement.webidl
+++ b/dom/webidl/HTMLContentElement.webidl
@@ -6,14 +6,15 @@
  * The origin of this IDL file is
  * https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html
  *
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
  * Opera Software ASA. You are granted a license to use, reproduce
  * and create derivative works of this document.
  */
 
+[Func="nsDocument::IsWebComponentsEnabled"]
 interface HTMLContentElement : HTMLElement
 {
   attribute DOMString select;
   NodeList getDistributedNodes();
 };
 
--- a/dom/webidl/HTMLShadowElement.webidl
+++ b/dom/webidl/HTMLShadowElement.webidl
@@ -6,13 +6,14 @@
  * The origin of this IDL file is
  * https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html
  *
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
  * Opera Software ASA. You are granted a license to use, reproduce
  * and create derivative works of this document.
  */
 
+[Func="nsDocument::IsWebComponentsEnabled"]
 interface HTMLShadowElement : HTMLElement
 {
   readonly attribute ShadowRoot? olderShadowRoot;
 };