Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #196 from past/enable-webcosk-ext
Browse files Browse the repository at this point in the history
Revert PR #153 now that the platform can deal with Chrome's weirdness. Fixes #155.
  • Loading branch information
jryans committed Feb 17, 2016
2 parents e5ec89a + 28af18a commit 1a7b368
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/chromium/rpc.js
Expand Up @@ -21,11 +21,6 @@ var TabConnection = Class({
if (prefs["logDeviceProtocolTraffic"]) {
console.log("<<<<<< Connecting to " + this.json.webSocketDebuggerUrl + "...");
}
// TODO: remove this workaround for issue #136 when bug 1137008 is fixed.
const {Cu} = require("chrome");
Cu.import("resource://gre/modules/Services.jsm");
Services.prefs.setBoolPref("network.websocket.extensions.permessage-deflate", false);

let socket = new WebSocket(this.json.webSocketDebuggerUrl, []);
this.socket = socket;
socket.onopen = () => {
Expand All @@ -39,11 +34,6 @@ var TabConnection = Class({
if (prefs["logDeviceProtocolTraffic"]) {
console.log(">>>>>> Web socket closed: " + e.code + "/" + e.reason);
}

// TODO: remove this workaround for issue #136 when bug 1137008 is fixed.
const {Cu} = require("chrome");
Cu.import("resource://gre/modules/Services.jsm");
Services.prefs.clearUserPref("network.websocket.extensions.permessage-deflate");
}
socket.oncerror = e => console.error("Error occurred in web socket: " + e);
});
Expand Down

0 comments on commit 1a7b368

Please sign in to comment.