mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
027befb9ba
Internal marionette listeners should neither be visible to content script, nor have their registation affected by changes made in content. The evaluate method was breaking these constraints by creating listeners in a sandbox with Xrays disabled, which is appropriate to the injected script itself but not to the harness-internal parts. Use a different sandbox for the harness code compared to the injected code, and move away from using onunload to using addEventListener for the unload handler. Differential Revision: https://phabricator.services.mozilla.com/D39522 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
chrome | ||
client | ||
components | ||
doc | ||
harness | ||
prefs | ||
puppeteer/firefox | ||
test | ||
.eslintrc.js | ||
accessibility.js | ||
action.js | ||
addon.js | ||
assert.js | ||
atom.js | ||
browser.js | ||
capabilities.js | ||
capture.js | ||
cert.js | ||
cookie.js | ||
dom.js | ||
driver.js | ||
element.js | ||
error.js | ||
evaluate.js | ||
event.js | ||
format.js | ||
interaction.js | ||
jar.mn | ||
l10n.js | ||
legacyaction.js | ||
listener.js | ||
log.js | ||
mach_commands.py | ||
mach_test_package_commands.py | ||
message.js | ||
modal.js | ||
moz.build | ||
navigate.js | ||
packets.js | ||
prefs.js | ||
proxy.js | ||
README | ||
reftest.js | ||
reftest.xul | ||
server.js | ||
stream-utils.js | ||
sync.js | ||
transport.js | ||
wm.js |
Marionette [ ˌmarɪəˈnɛt] is * a puppet worked by strings: the bird bobs up and down like a marionette; * a person who is easily manipulated or controlled: many officers dismissed him as the mayor’s marionette; * the remote protocol that lets out-of-process programs communicate with, instrument, and control Gecko-based browsers. Marionette provides interfaces for interacting with both the internal JavaScript runtime and UI elements of Gecko-based browsers, such as Firefox and Fennec. It can control both the chrome- and content documents, giving a high level of control and ability to replicate, or emulate, user interaction. Head on to the Marionette documentation to find out more: https://firefox-source-docs.mozilla.org/testing/marionette/marionette/