mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Backed out changeset 4c343bdb6e2a (bug 1321615) for browser_ext_webRequest.js timeouts
CLOSED TREE
This commit is contained in:
parent
9f9b153369
commit
3ca40609e1
@ -26,33 +26,6 @@ function createHiddenBrowser(url) {
|
||||
|
||||
let extension;
|
||||
let dummy = "http://mochi.test:8888/browser/browser/components/extensions/test/browser/file_dummy.html";
|
||||
let headers = {
|
||||
request: {
|
||||
add: {
|
||||
"X-WebRequest-request": "text",
|
||||
"X-WebRequest-request-binary": "binary",
|
||||
},
|
||||
modify: {
|
||||
"user-agent": "WebRequest",
|
||||
},
|
||||
remove: [
|
||||
"accept-encoding",
|
||||
],
|
||||
},
|
||||
response: {
|
||||
add: {
|
||||
"X-WebRequest-response": "text",
|
||||
"X-WebRequest-response-binary": "binary",
|
||||
},
|
||||
modify: {
|
||||
"server": "WebRequest",
|
||||
"content-type": "text/html; charset=utf-8",
|
||||
},
|
||||
remove: [
|
||||
"connection",
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
add_task(function* setup() {
|
||||
// SelfSupport has a tendency to fire when running this test alone, without
|
||||
@ -68,7 +41,6 @@ add_task(function* test_newWindow() {
|
||||
let expect = {
|
||||
"file_dummy.html": {
|
||||
type: "main_frame",
|
||||
headers,
|
||||
},
|
||||
};
|
||||
// NOTE: When running solo, favicon will be loaded at some point during
|
||||
@ -91,7 +63,6 @@ add_task(function* test_newTab() {
|
||||
let expect = {
|
||||
"file_dummy.html": {
|
||||
type: "main_frame",
|
||||
headers,
|
||||
},
|
||||
};
|
||||
extension.sendMessage("set-expected", {expect, ignore: ["favicon.ico"]});
|
||||
@ -106,7 +77,6 @@ add_task(function* test_subframe() {
|
||||
let expect = {
|
||||
"file_dummy.html": {
|
||||
type: "main_frame",
|
||||
headers,
|
||||
},
|
||||
};
|
||||
// test a content subframe attached to hidden window
|
||||
|
@ -90,7 +90,6 @@ function background(events) {
|
||||
expected.test[phase] = true;
|
||||
|
||||
let headers = details[`${phase}Headers`];
|
||||
browser.test.log(`headers are ${JSON.stringify(headers)}`);
|
||||
browser.test.assertTrue(Array.isArray(headers), `${phase}Headers array present`);
|
||||
|
||||
let {add, modify, remove} = expected.headers[phase];
|
||||
|
Loading…
Reference in New Issue
Block a user