Bug 1509872 - Fix the JavaScript error in 1017798-1.html that is introduced by bug 1416999; r=smaug
authorEdgar Chen <echen@mozilla.com>
Mon, 26 Nov 2018 21:27:06 +0000
changeset 504578 2c4f0bf2be1c6a47ca537ce552099bb9eefbe5be
parent 504577 38acc9df8e69e5c2377ba2f6d6c8bc6665a5dbef
child 504579 5318fe5c47e9bbe8de7a0beea7aabb1536d677a7
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1509872, 1017798, 1416999
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1509872 - Fix the JavaScript error in 1017798-1.html that is introduced by bug 1416999; r=smaug Differential Revision: https://phabricator.services.mozilla.com/D12941
layout/style/crashtests/1017798-1.html
--- a/layout/style/crashtests/1017798-1.html
+++ b/layout/style/crashtests/1017798-1.html
@@ -104,17 +104,18 @@ window.GaiaSwitch = (function(win) {
   // using HTML Imports (bug 877072).
   var template = document.createElement('template');
   template.innerHTML = '<label id="switch-label" class="pack-switch">' +
       '<input type="checkbox">' +
       '<span><slot></slot></span>' +
     '</label>';
 
   // Register and return the constructor
-  return document.registerElement('gaia-switch', { prototype: proto });
+  win.customElements.define('gaia-switch', GaiaSwitch);
+  return GaiaSwitch;
 })(window);
 </script>
 <body>
 <section>
   <gaia-switch>
     <label>With a label</label>
   </gaia-switch>
 </section>