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 318500 3663fe230f72ac37afbc25996cca6f2ef8794a4d
parent 318499 8fd689511059100897e7a13cde1cd7f3809c9b80
child 318501 660b322ef9fd22614359864cb2ebff3943511766
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1264968
milestone48.0a1
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);