Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Liam Brady 1f812d682c Bug 1864536 [wpt PR 43125] - Allow cross-origin subframes to send automatic beacons., a=testonly
Automatic update from web-platform-tests
Allow cross-origin subframes to send automatic beacons.

Fenced frames can send out reporting beacons if an event occurs.
However, only same-origin documents are allowed to send automatic
beacons. This restriction is problematic when a subframe from a
third-party ad server is embedded in an ad loaded with a script from
that server. One such use case is when an ad frame embeds a subframe
that loads the actual contents of an ad. This is known as Third-party ad
serving, or 3PAS.

The solution to allow cross-origin subframes to send automatic beacons
involves four parts: subframes will opt in through a header, the main ad
frame will opt in to allow cross-origin subframes to use its automatic
beacon data when sending automatic beacons, the subframe will then be
able to use the automatic beacon data that is stored in its frame tree's
FencedFrameConfig, and the automatic beacon data will be stored
per-document rather than per-fenced frame config.

The opt-in mechanism for the main ad frame's data is a new
"crossOriginExposed" parameter in
`setReportEventDataForAutomaticBeacons()`, which defaults to false.

The opt-in mechanism for the cross-origin subframe is done through a new
"Allow-Fenced-Frame-Automatic-Beacons" response header.

The reason for storing the beacon data per-document is a security one.
With the current setup, a same-origin subframe of an ad frame could set
automatic beacon data, and a different cross-origin subframe could then
use that data. Since those two frames are not direct descendants of each
other, we want to prevent that behavior, and instead only allow
documents to use opted in data set by direct ancestors.

This CL also modifies the automatic beacon web platform tests to
properly handle multiple beacons being sent with the same data. The
automatic beacon store endpoint now accepts a "beacon type" parameter
that is added to the hash when storing/retrieving a beacon. This will
prevent collisions if two beacons with different types are sent with
the same data.

Change-Id: I4af9d7ef34732dcd56c4f6bcf677f48956f7968c
Bug: 1504306
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5018876
Reviewed-by: Dominic Farolino <dom@chromium.org>
Reviewed-by: Garrett Tanzer <gtanzer@chromium.org>
Commit-Queue: Liam Brady <lbrady@google.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1234109}

--

wpt-commits: 458d51295af838f04608bda0dc912aaf88bc1de3
wpt-pr: 43125
2023-12-14 09:31:43 +00:00
.cargo Bug 1869520 - Update wgpu to revision 6dc9ccab8592645fda3204be1cfb5929fd7f924d. r=webgpu-reviewers,supply-chain-reviewers,nical 2023-12-13 09:48:09 +00:00
.github/workflows Bug 1853618 - address issue with GitHub PR closer, and optimise r=hwine DONTBUILD 2023-09-20 15:33:26 +00:00
.vscode Bug 1858932 - Skip bash and run mach directly on powershell for tasks.json r=tcampbell DONTBUILD 2023-10-17 19:49:17 +00:00
accessible Bug 1839051 - Make AccIdxComparator resilient against calls with r=Jamie=b. 2023-12-11 06:53:28 +00:00
browser Bug 1868967 - Update strings of os prompt dialog before showing payment method r=credential-management-reviewers,fluent-reviewers,bolsson,issammani 2023-12-14 08:52:53 +00:00
build Bug 1869078 - Filter-out target_cpu from substs provided by old-configure. r=firefox-build-system-reviewers,sergesanspaille 2023-12-14 05:14:32 +00:00
caps Bug 1864168 - Part 1: Use 1-origin column number in nsIContentSecurityPolicy. r=smaug,devtools-reviewers,ochameau,ckerschb 2023-11-22 12:31:30 +00:00
chrome Bug 1859873 - batch 13 xpcshell.ini -> .toml. r=aryx,devtools-reviewers,profiler-reviewers 2023-11-21 12:32:50 +00:00
config Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin 2023-12-14 09:12:32 +00:00
devtools Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol 2023-12-13 18:32:20 +00:00
docs Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol 2023-12-13 18:32:20 +00:00
docshell Bug 1868387 - Part 1: Make a pref, that enables origin security check for SetDocumentURI() method, r=smaug 2023-12-13 15:14:35 +00:00
dom Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin 2023-12-14 09:12:32 +00:00
editor Bug 1764895 - part 3: Get rid of nsIEditor.setShouldTxnSetSelection r=m_kato DONTBUILD 2023-12-14 00:41:20 +00:00
extensions Bug 1847298: IPC constructor cleanup r=nika,padenot,dom-storage-reviewers,necko-reviewers,cookie-reviewers,asuth,Jamie 2023-12-08 15:56:39 +00:00
gfx Merge mozilla-central to autoland. CLOSED TREE 2023-12-13 23:48:40 +02:00
gradle/wrapper
hal Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2023-12-04 10:09:36 +00:00
image Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin 2023-12-14 09:12:32 +00:00
intl Bug 1869332 - Remove .orig files that crept in. r=chunmin 2023-12-14 09:12:34 +00:00
ipc Merge mozilla-central to autoland. CLOSED TREE 2023-12-13 23:48:40 +02:00
js Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol 2023-12-13 18:32:20 +00:00
layout Bug 1869722 Part 2 - Remove the special case adding ShrinkWrap flag for flex items. r=dholbert 2023-12-13 22:50:36 +00:00
media Bug 1869332 - Temporarily disable libaom fuzzing on debug. r=pehrsons 2023-12-14 09:12:35 +00:00
memory Bug 1864828 - pt 1. Move operators to create literals with units into mfbt/ r=glandium 2023-12-11 11:01:33 +00:00
mfbt Bug 1869256 - Add move assignment operator for SegmentedVector r=mccr8 2023-12-11 17:06:08 +00:00
mobile Bug 1866927 - Adds APIs for toggling ETB in Private browsing mode r=geckoview-reviewers,kaya,owlish 2023-12-13 22:36:32 +00:00
modules Bug 1862039 - Pref webgl_gl_khr_no_error off on Linux. r=gfx-reviewers,jgilbert,jrmuizel 2023-12-14 07:52:11 +00:00
mozglue Bug 1866629 - Remove the sample_groups object in serialized counters, r=canaltinova,profiler-reviewers. 2023-12-12 11:28:07 +00:00
netwerk Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol 2023-12-13 18:32:20 +00:00
nsprpub
other-licenses Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol 2023-12-13 18:32:20 +00:00
parser Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen 2023-12-07 21:27:10 +00:00
python Bug 1869078 - Fix artefact builds r=fix CLOSED TREE 2023-12-14 08:57:18 +02:00
remote Bug 1866383. Provide useful error reporting for page sizes mismatches in WPT Print Reftests. r=jgraham,webdriver-reviewers 2023-12-11 18:00:36 +00:00
security No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM 2023-12-11 12:56:50 +00:00
services Bug 1867098: FxA PXI Toolbar experiment r=teshaq,desktop-theme-reviewers,flod,dao 2023-12-13 22:08:33 +00:00
servo Bug 1869299 - Expose a media query for known gtk theme families. r=rmader 2023-12-13 12:41:18 +00:00
startupcache Bug 1869606 - Improve StartupCache thread-safety annotations r=mccr8 2023-12-12 22:08:46 +00:00
storage Bug 1859896 - Batch 16 - convert xpcshell.ini -> .toml. r=aryx,webdriver-reviewers 2023-11-25 21:08:44 +00:00
supply-chain Bug 1869520 - Update wgpu to revision 6dc9ccab8592645fda3204be1cfb5929fd7f924d. r=webgpu-reviewers,supply-chain-reviewers,nical 2023-12-13 09:48:09 +00:00
taskcluster Bug 1869967 - Upgrade minidump-stackwalk to 0.19.1. r=gsvelto 2023-12-14 07:26:02 +00:00
testing Bug 1864536 [wpt PR 43125] - Allow cross-origin subframes to send automatic beacons., a=testonly 2023-12-14 09:31:43 +00:00
third_party Bug 1869690 - Hack the vendored pip's vendored pkg_resources to support python 3.12. r=ahochheiden,mach-reviewers 2023-12-13 20:21:49 +00:00
toolkit Bug 1868967 - Update strings of os prompt dialog before showing payment method r=credential-management-reviewers,fluent-reviewers,bolsson,issammani 2023-12-14 08:52:53 +00:00
tools Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
uriloader Bug 1603699 - Enable default URI pref. r=valentin,necko-reviewers,extension-reviewers,robwu 2023-12-06 19:33:56 +00:00
view Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau 2023-10-24 15:18:12 +00:00
widget Bug 1858409 - only show autofill/services menus when appropriate, r=mac-reviewers,reusable-components-reviewers,mstange,emilio,tgiles 2023-12-14 08:27:56 +00:00
xpcom Bug 1858409 - only show autofill/services menus when appropriate, r=mac-reviewers,reusable-components-reviewers,mstange,emilio,tgiles 2023-12-14 08:27:56 +00:00
xpfe/appshell Bug 1866011 p2. Rename nsIDocShell.contentViewer. r=emilio,credential-management-reviewers,devtools-reviewers,sgalich 2023-11-24 09:10:52 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw 2023-09-05 11:23:01 +00:00
.clang-format-ignore Bug 1816519 - implement getAuthenticatorData for AuthenticatorAttestationResponse. r=keeler,webidl,emilio,smaug 2023-08-31 22:56:50 +00:00
.cron.yml Bug 1750351 - Include push tasks for sp-perftests to prevent rescheduling builds. r=aryx DONTBUILD 2023-10-04 12:51:26 +00:00
.eslintignore Bug 1863400 - Part 6: Perform bundling within browser/components/aboutwelcome folder. r=pdahiya 2023-11-28 01:37:37 +00:00
.eslintrc-test-paths.js Bug 1844125 - Remove more bits of old translations code. r=gregtatum 2023-10-30 16:20:55 +00:00
.eslintrc.js Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
.git-blame-ignore-revs
.gitattributes
.gitignore Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
.hgtags No bug - tagging 2948bbde4074309cde93b3ae734d3bf6872e3425 with FIREFOX_NIGHTLY_121_END a=release DONTBUILD CLOSED TREE 2023-11-20 16:18:06 +00:00
.lando.ini Bug 1835962: add support for mach try to submit to Lando r=zeid,mach-reviewers,ahochheiden 2023-10-02 14:31:43 +00:00
.lldbinit
.mailmap
.prettierignore Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
.prettierrc.js
.stylelintignore Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
.stylelintrc.js Backed out 5 changesets (bug 1866802) for causing failures at test_TopSitesFeed.js. CLOSED TREE 2023-12-14 03:22:48 +02:00
.taskcluster.yml
.trackerignore
.yamllint Bug 1858299 - moz.yaml file should not start with --- r=tjr 2023-10-13 11:56:37 +00:00
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal 2023-12-12 14:13:44 +00:00
Cargo.lock Bug 1869520 - Update wgpu to revision 6dc9ccab8592645fda3204be1cfb5929fd7f924d. r=webgpu-reviewers,supply-chain-reviewers,nical 2023-12-13 09:48:09 +00:00
Cargo.toml Bug 1869358 - reference rusqlite via a workspace dependency. r=glandium 2023-12-13 14:28:12 +00:00
client.mk
client.py
CLOBBER Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin 2023-12-14 09:12:32 +00:00
configure
configure.py Bug 1861273 - Add some profile markers for sub-phases of configure. r=firefox-build-system-reviewers,ahochheiden 2023-10-26 00:49:31 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach Bug 1843209 - Bump Mach's minimum Python version to 3.8 r=firefox-build-system-reviewers,glandium 2023-12-12 03:52:00 +00:00
mach.cmd
mach.ps1
Makefile.in Bug 1863497 - sccache: enable --show-adv-stats when storing stats r=glandium 2023-11-27 16:59:49 +00:00
mots.yaml Bug 1868029. Fix some references to the renamed BZ component "Core::Document Navigation". r=smaug,zeid 2023-12-04 14:37:04 +00:00
moz.build Bug 1864624: Support building gkrust in mozilla-central derived projects. r=glandium 2023-11-17 11:31:55 +00:00
moz.configure Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato 2023-09-06 16:14:30 +00:00
mozilla-config.h.in
old-configure.in Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille 2023-12-08 10:43:59 +00:00
package-lock.json Bug 1786290 - Update @microsoft/eslint-plugin-sdl to version 0.2.2 r=freddyb,Standard8 2023-11-20 09:27:48 +00:00
package.json Bug 1786290 - Update @microsoft/eslint-plugin-sdl to version 0.2.2 r=freddyb,Standard8 2023-11-20 09:27:48 +00:00
pyproject.toml
README.txt
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre 2023-12-08 04:26:45 +00:00

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.