mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 22:28:59 +02:00
This patch applies the following small change to the openContextMenuInOptionsPage test helper: Instead of using BrowserTestUtils.synthesizeMouseAtCenter, the new version of the test helper triggers a contextmenu event directly on the target element, to prevent intermittent failures on debug builds (especially linux32-debug). The intermittent failures seem to be originated by an unexpected behavior of DOMWindowUtils's sendMouseEvent method, which is randomly triggering mouse events targeting the entire HTML document instead of the intended DOMElement (despites the EventUtils.js "synthesizeMouseAtPoint" method is computing the same `left` and `top` position in both the cases). It seems that there could be some timing reasons behind the issue, because the intermittency is reduced by adding an arbitrary long delay before triggering the mouse event. Differential Revision: https://phabricator.services.mozilla.com/D16345 --HG-- extra : moz-landing-system : lando |
||
|---|---|---|
| .. | ||
| child | ||
| parent | ||
| schemas | ||
| test | ||
| .eslintrc.js | ||
| ext-browser.json | ||
| extension-mac-panel.css | ||
| extension-mac.css | ||
| extension-win-panel.css | ||
| extension.css | ||
| extension.svg | ||
| ExtensionControlledPopup.jsm | ||
| ExtensionPopups.jsm | ||
| extensions-browser.manifest | ||
| jar.mn | ||
| moz.build | ||
| ParseBreakpadSymbols-worker.js | ||
| ParseNMSymbols-worker.js | ||
| ParseSymbols.jsm | ||