Bug 1135212 - ReferenceError: Ci is not defined (in contentAreaUtils.js). r=Gijs
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Fri, 20 Feb 2015 22:52:06 +0200
changeset 230034 ff50efdf90e656e865edd1fa86fda22e337d284c
parent 230033 7afbf9ebc89b15cc71605b371d3688be92b70679
child 230035 8591c9fcd24d32e7153e12adb7dee94fbf8bc2e2
push id28305
push userkwierso@gmail.com
push dateSat, 21 Feb 2015 01:57:46 +0000
treeherdermozilla-central@56efbd155062 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1135212
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 1135212 - ReferenceError: Ci is not defined (in contentAreaUtils.js). r=Gijs
toolkit/content/contentAreaUtils.js
--- a/toolkit/content/contentAreaUtils.js
+++ b/toolkit/content/contentAreaUtils.js
@@ -1185,17 +1185,17 @@ function openURL(aURL)
         throw Components.results.NS_ERROR_NO_INTERFACE;
       }
     }
 
     var channel = Services.io.newChannelFromURI2(uri,
                                                  null,      // aLoadingNode
                                                  Services.scriptSecurityManager.getSystemPrincipal(),
                                                  null,      // aTriggeringPrincipal
-                                                 Ci.nsILoadInfo.SEC_NORMAL,
-                                                 Ci.nsIContentPolicy.TYPE_OTHER);
+                                                 Components.interfaces.nsILoadInfo.SEC_NORMAL,
+                                                 Components.interfaces.nsIContentPolicy.TYPE_OTHER);
     var uriLoader = Components.classes["@mozilla.org/uriloader;1"]
                               .getService(Components.interfaces.nsIURILoader);
     uriLoader.openURI(channel,
                       Components.interfaces.nsIURILoader.IS_CONTENT_PREFERRED,
                       uriListener);
   }
 }