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 352171 53c441f68990de42869a32303a79e1747990e0f2
parent 352170 bb7bc01deac5bf711297e216328e640aeb729895
child 352172 ca77916dbaef9b01126a96d8c222a3942a8e4cdf
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;
 };