mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Bug 1298823 - Fix Request constructor - with "mode: navigate"
This commit is contained in:
parent
98546534b0
commit
56c088c2d4
3 changed files with 17 additions and 33 deletions
|
|
@ -152,12 +152,9 @@ function testHeaderGuard() {
|
|||
}
|
||||
|
||||
function testMode() {
|
||||
try {
|
||||
var req = new Request("http://example.com", {mode: "navigate"});
|
||||
ok(false, "Creating a Request with navigate RequestMode should throw a TypeError");
|
||||
} catch(e) {
|
||||
is(e.name, "TypeError", "Creating a Request with navigate RequestMode should throw a TypeError");
|
||||
}
|
||||
var req = new Request("http://example.com", {mode: "navigate"});
|
||||
ok(true, "Creating a Request with navigate RequestMode should not throw.");
|
||||
is(req.mode, "same-origin", "Request mode becomes same-origin");
|
||||
}
|
||||
|
||||
function testMethod() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue