зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1639328 - Fix browser_hidden_iframe.js. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D86591
This commit is contained in:
Родитель
36a4392364
Коммит
a80f2b2689
|
@ -28,21 +28,20 @@ addAccessibleTask(
|
||||||
);
|
);
|
||||||
|
|
||||||
const events = [[EVENT_REORDER, contentDocAcc]];
|
const events = [[EVENT_REORDER, contentDocAcc]];
|
||||||
if (!gIsRemoteIframe) {
|
// Until this event is fired, IFRAME accessible has no children attached.
|
||||||
// Until this event is fired, IFRAME accessible has no children attached.
|
events.push([
|
||||||
events.push([
|
EVENT_STATE_CHANGE,
|
||||||
EVENT_STATE_CHANGE,
|
event => {
|
||||||
event => {
|
const scEvent = event.QueryInterface(nsIAccessibleStateChangeEvent);
|
||||||
const scEvent = event.QueryInterface(nsIAccessibleStateChangeEvent);
|
const id = getAccessibleDOMNodeID(event.accessible);
|
||||||
const id = getAccessibleDOMNodeID(event.accessible);
|
return (
|
||||||
return (
|
id === DEFAULT_IFRAME_DOC_BODY_ID &&
|
||||||
id === DEFAULT_IFRAME_DOC_BODY_ID &&
|
scEvent.state === STATE_BUSY &&
|
||||||
scEvent.state === STATE_BUSY &&
|
scEvent.isEnabled === false
|
||||||
scEvent.isEnabled === false
|
);
|
||||||
);
|
},
|
||||||
},
|
]);
|
||||||
]);
|
|
||||||
}
|
|
||||||
const onEvents = waitForEvents(events);
|
const onEvents = waitForEvents(events);
|
||||||
await SpecialPowers.spawn(browser, [DEFAULT_IFRAME_ID], contentId => {
|
await SpecialPowers.spawn(browser, [DEFAULT_IFRAME_ID], contentId => {
|
||||||
content.document.getElementById(contentId).style.display = "";
|
content.document.getElementById(contentId).style.display = "";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче