This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge mozilla-central to mozilla-inbound
- Loading branch information
Showing
120 changed files
with
3,149 additions
and
2,200 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
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
28 changes: 28 additions & 0 deletions
28
browser/base/content/test/general/browser_aboutHome_wrapsCorrectly.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,28 @@ | ||
add_task(function* () { | ||
let newWindow = yield BrowserTestUtils.openNewBrowserWindow(); | ||
|
||
let resizedPromise = BrowserTestUtils.waitForEvent(newWindow, "resize"); | ||
newWindow.resizeTo(300, 300); | ||
yield resizedPromise; | ||
|
||
yield BrowserTestUtils.openNewForegroundTab(newWindow.gBrowser, "about:home"); | ||
|
||
yield ContentTask.spawn(newWindow.gBrowser.selectedBrowser, {}, function* () { | ||
is(content.document.body.getAttribute("narrow"), "true", "narrow mode"); | ||
}); | ||
|
||
resizedPromise = BrowserTestUtils.waitForContentEvent(newWindow.gBrowser.selectedBrowser, "resize"); | ||
|
||
|
||
yield ContentTask.spawn(newWindow.gBrowser.selectedBrowser, {}, function* () { | ||
content.window.resizeTo(800, 800); | ||
}); | ||
|
||
yield resizedPromise; | ||
|
||
yield ContentTask.spawn(newWindow.gBrowser.selectedBrowser, {}, function* () { | ||
is(content.document.body.hasAttribute("narrow"), false, "non-narrow mode"); | ||
}); | ||
|
||
yield BrowserTestUtils.closeWindow(newWindow); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"use strict"; | ||
|
||
/* eslint-disable mozilla/balanced-listeners */ | ||
extensions.on("uninstall", (msg, extension) => { | ||
if (extension.uninstallURL) { | ||
let browser = Services.wm.getMostRecentWindow("navigator:browser").gBrowser; | ||
browser.addTab(extension.uninstallURL, { relatedToCurrent: true }); | ||
} | ||
}); | ||
|
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
Oops, something went wrong.