author | Mark Banner <standard8@mozilla.com> |
Thu, 28 Feb 2019 09:25:05 +0000 | |
changeset 461705 | a8641920e299c86cbeeaeb32fceb746c059ad759 |
parent 461704 | d10717796a290bd4e4e63ca7ea019ad8e52b309d |
child 461706 | 3049be83e02d6a79118eb045831e3502196245f9 |
push id | 35627 |
push user | opoprus@mozilla.com |
push date | Thu, 28 Feb 2019 21:44:07 +0000 |
treeherder | mozilla-central@db533ea3d561 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | mak |
bugs | 1522508 |
milestone | 67.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js +++ b/browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js @@ -4,17 +4,17 @@ "use strict"; let scriptPage = url => `<html><head><meta charset="utf-8"><script src="${url}"></script></head><body>${url}</body></html>`; add_task(async function testBrowserActionClickCanceled() { let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "http://example.com/"); // Make sure the mouse isn't hovering over the browserAction widget. - EventUtils.synthesizeMouseAtCenter(gURLBar, {type: "mouseover"}, window); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {type: "mouseover"}, window); let extension = ExtensionTestUtils.loadExtension({ manifest: { "browser_action": { "default_popup": "popup.html", "browser_style": true, }, "permissions": ["activeTab"], @@ -82,17 +82,17 @@ add_task(async function testBrowserActio await extension.unload(); BrowserTestUtils.removeTab(tab); }); add_task(async function testBrowserActionDisabled() { // Make sure the mouse isn't hovering over the browserAction widget. - EventUtils.synthesizeMouseAtCenter(gURLBar, {type: "mouseover"}, window); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {type: "mouseover"}, window); let extension = ExtensionTestUtils.loadExtension({ manifest: { "browser_action": { "default_popup": "popup.html", "browser_style": true, }, }, @@ -190,17 +190,17 @@ add_task(async function testBrowserActio }, }); let win = await BrowserTestUtils.openNewBrowserWindow(); await BrowserTestUtils.loadURI(win.gBrowser.selectedBrowser, "http://example.com/"); await BrowserTestUtils.browserLoaded(win.gBrowser.selectedBrowser); // Make sure the mouse isn't hovering over the browserAction widget. - EventUtils.synthesizeMouseAtCenter(win.gURLBar, {type: "mouseover"}, win); + EventUtils.synthesizeMouseAtCenter(win.gURLBar.textbox, {type: "mouseover"}, win); await extension.startup(); let widget = getBrowserActionWidget(extension).forWindow(win); EventUtils.synthesizeMouseAtCenter(widget.node, {type: "mousedown", button: 0}, win); await new Promise(resolve => setTimeout(resolve, 100)); @@ -226,17 +226,17 @@ add_task(async function testClosePopupDu "popup.js": function() { browser.test.sendMessage("popup_loaded"); window.close(); }, }, }); // Make sure the mouse isn't hovering over the browserAction widget. - EventUtils.synthesizeMouseAtCenter(gURLBar, {type: "mouseover"}, window); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {type: "mouseover"}, window); await extension.startup(); const {GlobalManager, Management: {global: {browserActionFor}}} = ChromeUtils.import("resource://gre/modules/Extension.jsm", null); let ext = GlobalManager.extensionMap.get(extension.id); let browserAction = browserActionFor(ext);
--- a/browser/components/extensions/test/browser/browser_ext_browserAction_telemetry.js +++ b/browser/components/extensions/test/browser/browser_ext_browserAction_telemetry.js @@ -184,17 +184,17 @@ add_task(async function testBrowserActio is(histogram.snapshot().sum, 0, `No data recorded for histogram: ${RESULT_HISTOGRAM}.`); is(Object.keys(histogramKeyed).length, 0, `No data recorded for histogram: ${RESULT_HISTOGRAM_KEYED}.`); await extension.startup(); // Make sure the mouse isn't hovering over the browserAction widget to start. - EventUtils.synthesizeMouseAtCenter(gURLBar, {type: "mouseover"}, window); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {type: "mouseover"}, window); let widget = getBrowserActionWidget(extension).forWindow(window); // Hover the mouse over the browserAction widget and then move it away. EventUtils.synthesizeMouseAtCenter(widget.node, {type: "mouseover", button: 0}, window); EventUtils.synthesizeMouseAtCenter(widget.node, {type: "mouseout", button: 0}, window); EventUtils.synthesizeMouseAtCenter(document.documentElement, {type: "mousemove"}, window);
--- a/browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js +++ b/browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js @@ -1,15 +1,15 @@ /* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set sts=2 sw=2 et tw=80: */ "use strict"; async function testExecuteBrowserActionWithOptions(options = {}) { // Make sure the mouse isn't hovering over the browserAction widget. - EventUtils.synthesizeMouseAtCenter(gURLBar, {type: "mouseover"}, window); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {type: "mouseover"}, window); let extensionOptions = {}; extensionOptions.manifest = { "commands": { "_execute_browser_action": { "suggested_key": { "default": "Alt+Shift+J",
--- a/browser/components/extensions/test/browser/browser_ext_incognito_views.js +++ b/browser/components/extensions/test/browser/browser_ext_incognito_views.js @@ -1,15 +1,15 @@ /* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set sts=2 sw=2 et tw=80: */ "use strict"; add_task(async function testIncognitoViews() { // Make sure the mouse isn't hovering over the browserAction widget. - EventUtils.synthesizeMouseAtCenter(gURLBar, {type: "mouseover"}, window); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {type: "mouseover"}, window); let extension = ExtensionTestUtils.loadExtension({ manifest: { "permissions": ["tabs"], "browser_action": { "default_popup": "popup.html", }, },