Bug 1254303 - Remove SEC_NORMAL from js/. r=sicking
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Mon, 07 Mar 2016 14:19:50 -0800
changeset 287161 87026a942d377ae2bcdf5fb5663e3354657b2b91
parent 287160 c6b2cbc3f7cd6ec0adbc6f86d1383694705b82e2
child 287162 18b14a05ae127b160a213e78e9204d8f3378a08f
push id73081
push usercbook@mozilla.com
push dateTue, 08 Mar 2016 08:16:30 +0000
treeherdermozilla-inbound@18b14a05ae12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs1254303
milestone47.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 1254303 - Remove SEC_NORMAL from js/. r=sicking MozReview-Commit-ID: JhPDn2yZE2g
js/xpconnect/loader/mozJSComponentLoader.cpp
--- a/js/xpconnect/loader/mozJSComponentLoader.cpp
+++ b/js/xpconnect/loader/mozJSComponentLoader.cpp
@@ -233,17 +233,17 @@ class MOZ_STACK_CLASS ComponentLoaderInf
     }
 
     nsIChannel* ScriptChannel() { MOZ_ASSERT(mScriptChannel); return mScriptChannel; }
     nsresult EnsureScriptChannel() {
         BEGIN_ENSURE(ScriptChannel, IOService, URI);
         return NS_NewChannel(getter_AddRefs(mScriptChannel),
                              mURI,
                              nsContentUtils::GetSystemPrincipal(),
-                             nsILoadInfo::SEC_NORMAL,
+                             nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
                              nsIContentPolicy::TYPE_SCRIPT,
                              nullptr, // aLoadGroup
                              nullptr, // aCallbacks
                              nsIRequest::LOAD_NORMAL,
                              mIOService);
     }
 
     nsIURI* ResolvedURI() { MOZ_ASSERT(mResolvedURI); return mResolvedURI; }