gecko-dev/browser
Rob Wu c602a78f33 Bug 1748158 - Omit sender.frameId if sender.tab is unset r=rpl
`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-04 23:07:16 +00:00
..
actors Bug 1745678 - Remove TLS 1.0/1.1 override UX, r=Gijs,mkaply,fluent-reviewers 2021-12-28 23:39:43 +00:00
app Bug 1742585 - Add PiP toggle visibility threshold preference r=mtigley 2022-01-03 21:54:57 +00:00
base Bug 1747288 - Fix test pref setup r=tgiles,preferences-reviewers 2022-01-04 16:08:48 +00:00
branding Bug 1592731 - Update Firefox ESR's update failure doorhanger to direct user to the ESR download page. r=nalexander,mkaply 2021-12-21 20:57:08 +00:00
components Bug 1748158 - Omit sender.frameId if sender.tab is unset r=rpl 2022-01-04 23:07:16 +00:00
config Bug 1747165 - Unbust OS X Cross Compiled repack builds. r=bustage-fix CLOSED TREE 2021-12-23 03:24:48 +02:00
docs Bug 1748443 - Drop reference to search telemetry from BrowserUsageTelemetry documentation. r=adw 2022-01-04 17:12:34 +00:00
extensions Bug 1738345 remove proxy failure system addon r=willdurand 2021-12-23 18:48:09 +00:00
fonts
fxr Bug 1708243 - Part 4: Remove tab-content.js and onExtensionBrowser.js, stop touching .content eagerly r=robwu 2021-10-09 22:45:28 +00:00
installer No bug: remove dead installer code around Metro tiles. r=bytesized 2022-01-04 18:10:36 +00:00
locales Bug 1744466 - Make "More from Mozilla" strings localizable r=preferences-reviewers,fluent-reviewers,flod,Gijs 2021-12-29 15:12:43 +00:00
modules Bug 1747973 - Cache the top-sites query context like we cache other contexts. r=harry 2022-01-03 19:18:54 +00:00
themes Bug 1747967 - Tweak the urlbar breakout expansion animation so it aligns better with the input when it starts. r=harry,desktop-theme-reviewers 2021-12-30 18:38:27 +00:00
tools/mozscreenshots Bug 1741369 - [devtools] Update paths to loader files outside devtools/ r=perftest-reviewers,preferences-reviewers,sparky,Gijs 2021-11-17 12:43:27 +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 1747855 - Move --disable-updater to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu 2021-12-30 00:54:02 +00:00
defs.mk
l10n-registry.manifest
LICENSE
Makefile.in
moz.build
moz.configure