mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
9ac995ab12
This makes it possible to subscribe to DOM events in web content, in order to facilitate fixes for cases such as https://bugzil.la/1397007. Although the current interface, WebElementEventTarget, is associated with browser.Context (curBrowser) it is the intention that we in the future will associate this with representations of the marshaled web element. This will make it quack and act like an Element's EventTarget, which has nice parity to it. The WebElementEventTarget works by passing IPC messages to a backend service in the content frame script implemented by ContentEventObserverService. This registers event handlers for specific DOM events, and relays these events back to the browser-specific message handler in chrome. This will enable chrome code to wait for events to occur in content, like this: await new Promise(resolve => { webElement.addEventListener("visibilitychange", resolve, {once: true}); contentBrowser.minimize(); }); MozReview-Commit-ID: B8MMHyG8n04 --HG-- extra : rebase_source : 25ac77fbcfb09435325719ac61614c4a8ce37996 |
||
---|---|---|
.. | ||
awsy | ||
config | ||
crashtest | ||
firefox-ui | ||
geckodriver | ||
gtest | ||
instrumentation | ||
marionette | ||
mochitest | ||
modules | ||
mozbase | ||
mozharness | ||
profiles | ||
runtimes | ||
specialpowers | ||
talos | ||
tools | ||
tps | ||
web-platform | ||
webdriver | ||
xpcshell | ||
cppunittest.ini | ||
mach_commands.py | ||
moz.build | ||
README.txt | ||
remotecppunittests.py | ||
runcppunittests.py | ||
testsuite-targets.mk |
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff