Bug 1115678 - Explicitly set dom.workers.websocket.enabled for websocket tests in workers. rs=RyanVM

This commit is contained in:
Andrea Marchesini 2014-12-26 05:31:00 -05:00
parent a0781ee659
commit b8ee62aca6

View File

@ -13,7 +13,8 @@
<script class="testbody" type="text/javascript">
SpecialPowers.pushPrefEnv({ set: [["dom.workers.sharedWorkers.enabled", true]] }, function() {
SpecialPowers.pushPrefEnv({ set: [["dom.workers.sharedWorkers.enabled", true],
["dom.workers.websocket.enabled", true]]}, function() {
var sw = new SharedWorker('webSocket_sharedWorker.js');
sw.port.onmessage = function(event) {
if (event.data.type == 'finish') {