forked from mirrors/gecko-dev
This fixes four issues: 1. The test didn't provide enough movement to generate a drag session on the source before moving to the target. This meant that, when they were in different windows, Gecko wouldn't send dragleave to the source or dragenter to the target. It also never sent dragenter to the source in the first place. This remedies that. 2. dragenter and dragleave weren't properly handled because the test was sending dragleaves instead of dragexits (the latter being what Gecko expects and the former being synthesized from that -- see e.g. nsNativeDragTarget::DragLeave). This now uses dragexits and sets the proper expectations. 3. expectProtectedDataTransferAccess was needlessly complicated and, after #1, gave the wrong answers for some events like dragenter called on the source. 4. The event handler wasn't checking for exceptions and the drop handler was intentionally causing one, which was causing it to miss the rest of its execution. Original Revision: https://phabricator.services.mozilla.com/D219550 Differential Revision: https://phabricator.services.mozilla.com/D227589 |
||
|---|---|---|
| .. | ||
| baselinecoverage | ||
| BrowserTestUtils | ||
| chrome | ||
| DoHServer | ||
| dynamic | ||
| embed | ||
| Http2Server | ||
| manifests | ||
| MochiKit | ||
| pywebsocket3 | ||
| ssltunnel | ||
| static | ||
| tests | ||
| __init__.py | ||
| api.js | ||
| bisection.py | ||
| browser-harness.xhtml | ||
| browser-test.js | ||
| chrome-harness.js | ||
| chunkifyTests.js | ||
| document-builder.sjs | ||
| favicon.ico | ||
| harness.xhtml | ||
| ignorePrefs.json | ||
| leaks.py | ||
| mach_commands.py | ||
| mach_test_package_commands.py | ||
| manifest.json | ||
| manifest.webapp | ||
| manifestLibrary.js | ||
| mochitest-e10s-utils.js | ||
| mochitest_options.py | ||
| mochitestListingsUtils.js | ||
| moz.build | ||
| pywebsocket_wrapper.py | ||
| README.txt | ||
| redirect.html | ||
| runjunit.py | ||
| runtests.py | ||
| runtestsremote.py | ||
| schema.json | ||
| server.js | ||
| shutdown-leaks-collector.js | ||
| ShutdownLeaksCollector.sys.mjs | ||
| start_desktop.js | ||
See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.