зеркало из https://github.com/mozilla/gecko-dev.git
Bug 993712 - Remove hand-rolled timeout handler from customizableui/test/head.js. r=test-only
I'm trying to smoke out an intermittent orange in bug 993712, and I'm starting to run dry on ideas. I'm having no luck reproducing the bug locally. What I'm trying to do here is cause the orange (when it rears its head) to force a mochitest timeout, which will take a screenshot. I'm hoping that screenshot gives me some clues about what's going on.
This commit is contained in:
Родитель
39f5fd8ef2
Коммит
ee08e05f4f
|
@ -457,13 +457,7 @@ function promisePopupEvent(aPopup, aEventSuffix) {
|
|||
let win = aPopup.ownerDocument.defaultView;
|
||||
let eventType = "popup" + aEventSuffix;
|
||||
|
||||
let timeoutId = win.setTimeout(() => {
|
||||
deferred.reject("Context menu (" + aPopup.id + ") did not fire "
|
||||
+ eventType + " within 20 seconds.");
|
||||
}, 20000);
|
||||
|
||||
function onPopupEvent(e) {
|
||||
win.clearTimeout(timeoutId);
|
||||
aPopup.removeEventListener(eventType, onPopupEvent);
|
||||
deferred.resolve();
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче