addon-sdk/source/test/fixtures/chrome-worker/xhr.js

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:a74ddaf68264
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 'use strict';
5
6 let xhr = new XMLHttpRequest();
7 xhr.open("GET", "data:text/plain,ok", true);
8 xhr.onload = function () {
9 postMessage(xhr.responseText);
10 };
11 xhr.send(null);

mercurial