diff --git a/accessible/windows/msaa/AccessibleWrap.cpp b/accessible/windows/msaa/AccessibleWrap.cpp index 274da2fc7cad..0f30c0581b5c 100644 --- a/accessible/windows/msaa/AccessibleWrap.cpp +++ b/accessible/windows/msaa/AccessibleWrap.cpp @@ -1255,15 +1255,25 @@ AccessibleWrap::GetHWNDFor(Accessible* aAccessible) return nullptr; } - // Accessibles in child processes are said to have the HWND of the window - // their tab is within. Popups are always in the parent process, and so - // never proxied, which means this is basically correct. if (aAccessible->IsProxy()) { ProxyAccessible* proxy = aAccessible->Proxy(); if (!proxy) { return nullptr; } + // If window emulation is enabled, retrieve the emulated window from the + // containing document document proxy. + if (nsWinUtils::IsWindowEmulationStarted()) { + DocAccessibleParent* doc = proxy->Document(); + HWND hWnd = doc->GetEmulatedWindowHandle(); + if (hWnd) { + return hWnd; + } + } + + // Accessibles in child processes are said to have the HWND of the window + // their tab is within. Popups are always in the parent process, and so + // never proxied, which means this is basically correct. Accessible* outerDoc = proxy->OuterDocOfRemoteBrowser(); NS_ASSERTION(outerDoc, "no outer doc for accessible remote tab!"); if (!outerDoc) { diff --git a/browser/base/content/test/urlbar/browser.ini b/browser/base/content/test/urlbar/browser.ini index 7e013fdd0044..9d11f931fdce 100644 --- a/browser/base/content/test/urlbar/browser.ini +++ b/browser/base/content/test/urlbar/browser.ini @@ -29,7 +29,6 @@ support-files = [browser_bug556061.js] subsuite = clipboard [browser_bug562649.js] -skip-if = e10s # Bug 1315042 [browser_bug623155.js] support-files = redirect_bug623155.sjs diff --git a/browser/base/content/test/urlbar/browser_bug562649.js b/browser/base/content/test/urlbar/browser_bug562649.js index 32870133d923..f56e430ee99d 100644 --- a/browser/base/content/test/urlbar/browser_bug562649.js +++ b/browser/base/content/test/urlbar/browser_bug562649.js @@ -9,7 +9,7 @@ function test() { is(gURLBar.value, URI, "location bar value matches test URI"); gBrowser.selectedTab = gBrowser.addTab(); - gBrowser.removeCurrentTab(); + gBrowser.removeCurrentTab({ skipPermitUnload: true }); is(gBrowser.userTypedValue, URI, "userTypedValue matches test URI after switching tabs"); is(gURLBar.value, URI, "location bar value matches test URI after switching tabs"); @@ -18,7 +18,7 @@ function test() { is(gBrowser.userTypedValue, null, "userTypedValue is null as the page has loaded"); is(gURLBar.value, URI, "location bar value matches test URI as the page has loaded"); - gBrowser.removeCurrentTab(); + gBrowser.removeCurrentTab({ skipPermitUnload: true }); finish(); }); } diff --git a/devtools/client/framework/options-panel.css b/devtools/client/framework/options-panel.css index 0a4ac8c4a33e..dea0def4f56d 100644 --- a/devtools/client/framework/options-panel.css +++ b/devtools/client/framework/options-panel.css @@ -110,7 +110,12 @@ min-width: 80px; } +#screenshot-icon { + vertical-align: middle; + min-width: 0; + padding: 5px; +} + #screenshot-icon::before { background-image: url(chrome://devtools/skin/images/command-screenshot.svg); - margin-inline-start: 5px; } diff --git a/devtools/client/framework/toolbox-options.xhtml b/devtools/client/framework/toolbox-options.xhtml index ba1ebde77a25..d0a5c4eadad7 100644 --- a/devtools/client/framework/toolbox-options.xhtml +++ b/devtools/client/framework/toolbox-options.xhtml @@ -110,7 +110,7 @@
&options.screenshot.label; - +