Bug 1264968 part 1 - Use replace uses of removed String.contains with the new .includes method. r=jaws
authorXidorn Quan <quanxunzhen@gmail.com>
Mon, 25 Apr 2016 09:40:16 +0800
changeset 332597 3663fe230f72ac37afbc25996cca6f2ef8794a4d
parent 332596 8fd689511059100897e7a13cde1cd7f3809c9b80
child 332598 660b322ef9fd22614359864cb2ebff3943511766
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1264968
milestone48.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 1264968 part 1 - Use replace uses of removed String.contains with the new .includes method. r=jaws MozReview-Commit-ID: DOR86fImhbQ
browser/components/preferences/in-content/subdialogs.js
--- a/browser/components/preferences/in-content/subdialogs.js
+++ b/browser/components/preferences/in-content/subdialogs.js
@@ -285,18 +285,18 @@ var gSubDialog = {
     // or their presence will restrict the contents of the <browser>
     // from resizing to a smaller size.
     frame.style.removeProperty("width");
     frame.style.removeProperty("height");
 
     let docEl = frame.contentDocument.documentElement;
     let persistedAttributes = docEl.getAttribute("persist");
     if (!persistedAttributes ||
-        (!persistedAttributes.contains("width") &&
-         !persistedAttributes.contains("height"))) {
+        (!persistedAttributes.includes("width") &&
+         !persistedAttributes.includes("height"))) {
       return;
     }
 
     for (let mutation of mutations) {
       if (mutation.attributeName == "width") {
         docEl.setAttribute("width", docEl.scrollWidth);
       } else if (mutation.attributeName == "height") {
         docEl.setAttribute("height", docEl.scrollHeight);