forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge autoland to mozilla-central. a=merge
- Loading branch information
Showing
96 changed files
with
4,789 additions
and
1,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
devtools/client/responsive.html/test/browser/browser_container_tab.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
"use strict"; | ||
|
||
// Verify RDM opens for a container tab. | ||
|
||
const TEST_URL = "http://example.com/"; | ||
|
||
add_task(async function() { | ||
// Open a tab with about:newtab in a container. | ||
const tab = await addTab(BROWSER_NEW_TAB_URL, { | ||
userContextId: 2, | ||
}); | ||
is(tab.userContextId, 2, "Tab's container ID is correct"); | ||
const browser = tab.linkedBrowser; | ||
|
||
// Open RDM and try to navigate | ||
const { ui } = await openRDM(tab); | ||
const loaded = waitForFrameLoad(ui, TEST_URL); | ||
await load(browser, TEST_URL); | ||
await loaded; | ||
ok(true, "Test URL navigated successfully"); | ||
|
||
await closeRDM(tab); | ||
await removeTab(tab); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
devtools/client/responsive.html/test/browser/browser_preloaded_newtab.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
"use strict"; | ||
|
||
// Verify RDM opens for a preloaded about:newtab browser. | ||
|
||
const TEST_URL = "http://example.com/"; | ||
|
||
add_task(async function() { | ||
// Open a tab with about:newtab. | ||
// Don't wait for load because the page is preloaded. | ||
const tab = await addTab(BROWSER_NEW_TAB_URL, { | ||
waitForLoad: false, | ||
}); | ||
const browser = tab.linkedBrowser; | ||
is(browser.getAttribute("preloadedState"), "consumed", | ||
"Got a preloaded browser for newtab"); | ||
|
||
// Open RDM and try to navigate | ||
const { ui } = await openRDM(tab); | ||
const loaded = waitForFrameLoad(ui, TEST_URL); | ||
await load(browser, TEST_URL); | ||
await loaded; | ||
ok(true, "Test URL navigated successfully"); | ||
|
||
await closeRDM(tab); | ||
await removeTab(tab); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.