Bug 1257924 - Remove SEC_NORMAL from MozLoopPushHandler.jsm. r=sicking
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Fri, 18 Mar 2016 11:05:32 -0700
changeset 289423 e627a445ff01f28fb49c32f2e28e91c034420574
parent 289422 deba80c525f09dd47c93be1f8fa7bc34c6dbb3d0
child 289424 574e8c5132b9ced6db7395b9f85440f43649555f
push id30102
push userryanvm@gmail.com
push dateSat, 19 Mar 2016 15:23:17 +0000
treeherdermozilla-central@720fb3d55e28 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs1257924
milestone48.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 1257924 - Remove SEC_NORMAL from MozLoopPushHandler.jsm. r=sicking
browser/extensions/loop/chrome/content/modules/MozLoopPushHandler.jsm
--- a/browser/extensions/loop/chrome/content/modules/MozLoopPushHandler.jsm
+++ b/browser/extensions/loop/chrome/content/modules/MozLoopPushHandler.jsm
@@ -61,17 +61,17 @@ PushSocket.prototype = {
     this._onClose = onClose;
 
     if (!this._websocket) {
       this._websocket = Cc["@mozilla.org/network/protocol;1?name=wss"]
                           .createInstance(Ci.nsIWebSocketChannel);
       this._websocket.initLoadInfo(null, // aLoadingNode
                                    Services.scriptSecurityManager.getSystemPrincipal(),
                                    null, // aTriggeringPrincipal
-                                   Ci.nsILoadInfo.SEC_NORMAL,
+                                   Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
                                    Ci.nsIContentPolicy.TYPE_WEBSOCKET);
     }
 
     let uri = Services.io.newURI(pushUri, null, null);
     this._websocket.protocol = "push-notification";
     this._websocket.asyncOpen(uri, pushUri, 0, this, null);
   },