Bug 1264968 part 1 - Use replace uses of removed String.contains with the new .includes method. r=jaws draft
authorXidorn Quan <quanxunzhen@gmail.com>
Tue, 19 Apr 2016 10:35:11 +1000
changeset 355242 9da7cf1cfb8409d6b66d7b717aa39b11145a9c90
parent 355180 8472fb7f648b9c5af8b0dbb6016f23c461b6ab45
child 355243 0401063ca91369f4e9f5f312907023578bd9838f
push id16242
push userxquan@mozilla.com
push dateFri, 22 Apr 2016 06:38:34 +0000
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);