Bug 1108930 - Part 4: Call Map with new in browser. r=felipe
authorTooru Fujisawa <arai_a@mac.com>
Thu, 05 Feb 2015 00:59:15 +0900
changeset 227456 65c74fc6e769c07901f04090a3d4fbffbddbc471
parent 227455 e0d0cca6c17e08f6e2ec5e9e6abf0fbebe5ad51d
child 227457 94276cdcc5fff760aec3eb59eaf866335ab9360c
push id55126
push userarai_a@mac.com
push dateWed, 04 Feb 2015 16:00:49 +0000
treeherdermozilla-inbound@2c896a4f15ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs1108930
milestone38.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 1108930 - Part 4: Call Map with new in browser. r=felipe
browser/base/content/pageinfo/permissions.js
--- a/browser/base/content/pageinfo/permissions.js
+++ b/browser/base/content/pageinfo/permissions.js
@@ -261,17 +261,17 @@ function clearPluginPermissionTemplate()
   document.querySelector(".permPluginTemplateRadioAllow").removeAttribute("id");
   document.querySelector(".permPluginTemplateRadioBlock").removeAttribute("id");
 }
 
 function initPluginsRow() {
   let vulnerableLabel = document.getElementById("browserBundle").getString("pluginActivateVulnerable.label");
   let pluginHost = Components.classes["@mozilla.org/plugin/host;1"].getService(Components.interfaces.nsIPluginHost);
 
-  let permissionMap = Map();
+  let permissionMap = new Map();
 
   for (let plugin of pluginHost.getPluginTags()) {
     if (plugin.disabled) {
       continue;
     }
     for (let mimeType of plugin.getMimeTypes()) {
       let permString = pluginHost.getPermissionStringForType(mimeType);
       if (!permissionMap.has(permString)) {