gecko-dev/mobile/android
Rob Wu 2a62c0c6f2 Bug 1748158 - Omit sender.frameId if sender.tab is unset r=rpl,geckoview-reviewers,jonalmeida
`sender.frameId` should be set iff `sender.tab` is set, as documented at
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/MessageSender
The removal of the `viewType == "tab"` condition broke this in
https://hg.mozilla.org/mozilla-central/rev/2dc4f1baccc8

This patch makes the presence of `frameId` conditional on `tab`, and
fixes several tests that relied on the incorrect behavior:

- Move the runtime.onConnect test from test_ext_contentscript_in_background.js
  to a new mochitest at test_ext_runtime_connect_iframe.html.

- Simplify test_ext_contentscript_in_background.js to continue to
  provide test coverage for contentScripts.register + allFrames.

- Replace runtime.onConnect with runtime.getFrameId in
  test_ext_contentscript_xorigin_frame.js, since sender.frameId is no
  longer available in xpcshell tests (because internals to support the
  tabs extension API are not available in xpcshell tests). The test
  cannot be moved to a mochitest because its purpose is to provide test
  coverage for process switching in a xpcshell test (bug 1580811).

Differential Revision: https://phabricator.services.mozilla.com/D135057
2022-01-06 14:15:47 +00:00
..
actors Bug 1659481 - lint fix r=fix CLOSED TREE 2021-12-11 02:24:56 +02:00
annotations Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
app Bug 1619655 - Part 4. Set GV's COOP+COEP processCount for Release and Beta r=geckoview-reviewers,calu 2021-12-07 00:19:01 +00:00
branding Bug 1747855 - Move --disable-updater to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu 2021-12-30 00:54:02 +00:00
chrome Bug 1659481 - Move MediaControlChild to actor. r=calu 2021-12-11 00:03:47 +00:00
components Bug 1748158 - Omit sender.frameId if sender.tab is unset r=rpl,geckoview-reviewers,jonalmeida 2022-01-06 14:15:47 +00:00
config Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
docs Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
examples Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
fonts
geckoview Bug 1644595 - Support requiring user interaction for session navigation. r=geckoview-reviewers,calu 2021-12-29 00:05:05 +00:00
geckoview_example Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
gradle Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
installer Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,glandium,jschanck 2021-12-18 01:30:24 +00:00
locales Bug 1746268 add android site permission strings and reenable test r=rpl,flod 2021-12-16 20:14:32 +00:00
modules Bug 1644595 - Support requiring user interaction for session navigation. r=geckoview-reviewers,calu 2021-12-29 00:05:05 +00:00
test_runner Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
themes/geckoview Bug 1249548 - Use svg for GeckoView carets. r=TYLin,agi 2021-07-27 18:24:39 +00:00
.eslintrc.js
app.mozbuild Bug 1746299 - Remove broken support for --enable-project=extensions and --enable-extensions. r=Gijs,firefox-build-system-reviewers,mhentges 2021-12-18 00:32:34 +00:00
build.mk
confvars.sh Bug 1747856 - Move MOZ_NO_SMART_CARDS to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu 2021-12-30 00:54:02 +00:00
gen_from_jinja.py Bug 1701269 - Remove mobile/android/base. r=nalexander,flod,owlish 2021-05-20 22:03:03 +00:00
gradle.configure Bug 1747332 - s/check_build_environment/build_environment/. r=firefox-build-system-reviewers,geckoview-reviewers,andi,calu 2021-12-23 20:47:47 +00:00
gradle.py
LICENSE
mach_commands.py Bug 1740358 - Download Java from adoptium. r=mhentges,glandium 2021-11-30 16:10:59 +00:00
moz.build Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb 2021-09-23 01:41:47 +00:00
moz.configure Bug 1747754 - Move --with-android-min-sdk to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu 2021-12-29 22:18:51 +00:00