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
Lukasz Anforowicz 51ccd61811 Bug 1440377 [wpt PR 9635] - Move core CORB logic into //services/network., a=testonly
Automatic update from web-platform-testsMove core CORB logic into //services/network.

This CL moves the core CORB logic (figuring out if a given response
should be CORB-protected based on 1) response metadata like initiator,
MIME type, CORS headers and 2) sniffing the first bytes of the response)
from //content/common into //services/network.

As part of the move, this CL makes some extra, opportunistic changes:
- Renames the moved files (and the moved class) to match the name agreed
  upon in the explainer
  (s/CrossSiteDocumentClassifier/CrossOriginReadBlocking)
- Also moves the explainer doc to //services/network
- Tweaks the old CrossSiteDocumentMimeType enum so that
  - It is nested in CrossOriginReadBlocking::MimeType
  - The enum values have shorter names

In the long-term, the core CORB logic should only be needed within
services/network.  In the short-term, this logic has the following
consumers:

- content/browser/loader/cross_site_document_resource_handler.cc
  (integrates CORB into the old, pre-network-service,
  ResourceHandler-based world;  this can go away after the network
  service ships)

- content/renderer/loader/site_isolation_stats_gatherer.cc
  (gathers UMA that help decide what responses can be blocked
  by CORB with acceptably low risk of breaking existing websites;
  this can go away after CORB ships)

- WIP(https://crbug.com/792546): services/network/url_loader.cc
  (this will integrate CORB into the new, network-service world).

Bug: 792546
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Ib8fe412b1f807d23e41700b7f7090cd4b77c1783
Reviewed-on: https://chromium-review.googlesource.com/929446
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Nick Carter <nick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541661}

wpt-commits: 6cd55d2d27fa20b5c0f7d31e6899206eff44870b
wpt-pr: 9635
wpt-commits: 6cd55d2d27fa20b5c0f7d31e6899206eff44870b
wpt-pr: 9635
2018-03-31 22:32:49 +01:00
.cargo Bug 1447998 - Update serde patching to go with WR PR 2577. r=jrmuizel 2018-03-28 09:11:53 -04:00
.vscode
accessible Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
browser Backed out changeset dcd8ba6a9028 (bug 1429394) for build bustages. CLOSED TREE 2018-03-31 18:05:52 +03:00
build Bug 1450133 - Pick up LLD r320462 for the static analysis builders. r=froydnj 2018-03-30 18:06:27 -04:00
caps Bug 1448414. Remove the DOM_OBJECT classinfo bit. r=kmag 2018-03-28 22:46:23 -04:00
chrome Bug 1449400 part 5 - Remove StyleSetHandle. r=emilio 2018-03-29 22:15:46 +11:00
config Bug 1449574: Update tzdata in ICU data files to 2018d. r=Waldo 2018-03-29 10:02:57 -07:00
db Bug 1442370 - Change SQLITE_TEMP_FILE_PREFIX to a Mozilla unique value. r=asuth 2018-03-01 20:55:18 +01:00
devtools Bug 1402828 - "copy as cURL" test adjustments; r=Honza 2018-03-28 23:00:25 +02:00
docshell Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
dom Bug 1446617 - support the SVG 2 path attribute for textPath elements r=dholbert 2018-03-31 18:50:10 +01:00
editor Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
embedding Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
extensions Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
gfx Bug 1450212 - Change CompositorWindow creation and destruction timing r=nical 2018-03-31 07:48:27 +09:00
gradle/wrapper Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu 2017-10-26 11:00:36 -07:00
hal Bug 1447873 - Remove Time API backend in hal. r=gsvelto 2018-03-22 10:46:42 +09:00
image Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz 2018-03-29 12:16:23 +02:00
intl Bug 1449574: Update tzdata in ICU data files to 2018d. r=Waldo 2018-03-29 10:02:57 -07:00
ipc Bug 1255800 - Make computeThis return a boolean for easier error handling. r=jorendorff 2018-03-23 13:09:04 +01:00
js Bug 1449066 - Annotate more func<AllowGC::NoGC> as not being able to GC, r=jonco 2018-03-28 20:59:03 -07:00
layout Bug 1446617 - support the SVG 2 path attribute for textPath elements r=dholbert 2018-03-31 18:50:10 +01:00
media Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00
memory Bug 1446466 Remove Nightly-only restriction on jemalloc arena implementation r=glandium 2018-03-21 20:53:46 -05:00
mfbt Backed out changeset 577c20417552 (bug 1449094) for failing /builds/worker/workspace/build/src/mfbt/tests/TestAlgorithm.cpp CLOSED TREE 2018-03-30 01:54:04 +03:00
mobile Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-31 01:28:52 +03:00
modules Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
mozglue Bug 1448029 - make constructors in the linker explicit; r=glandium 2018-03-27 10:51:32 -04:00
netwerk Backed out 4 changesets (bug 1429169) for failing browser chrome at browser/components/enterprisepolicies/tests/browser/browser_policy_cookie_settings.js on a CLOSED TREE 2018-03-30 03:35:01 +03:00
nsprpub Bug 1432480, land NSPR_4_19_RTM, no code changes, only version numbers. Require version 4.19 for building. r=me 2018-03-05 17:05:18 +01:00
other-licenses Bug 986081 Part 0 - Fix a hang when canceling an InetBgDl request. r=agashlin 2018-03-20 15:32:43 -07:00
parser Bug 1449064 - Convert html.* prefs to StaticPrefs. r=hsivonen 2018-03-27 11:59:48 +11:00
python Bug 1449623 - Export MOZ_BUILD_DATE for buildid.h; r=chmanchester 2018-03-28 14:30:02 -04:00
rdf Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb 2018-03-22 13:36:20 -05:00
security Bug 1445731 - land NSS 6ae3ab8a1e7b UPGRADE_NSS_RELEASE, r=me 2018-03-30 08:52:56 -07:00
services Bug 1450316 - Run sync's test_utils_makeGUID.js sequentially r=kitcambridge 2018-03-30 11:13:54 -07:00
servo servo: Merge #20450 - Properly rethrow any exceptions from parsing JSON in Body mixin's Json() (from ysimonson:fix-13464); r=jdm 2018-03-27 22:44:32 -04:00
startupcache Bug 1439047 - Part 2: Cleanup StartupCache::PutBuffer hashtable usage. r=froydnj 2018-02-16 15:58:30 -08:00
storage Bug 1255800 - Remove JS_THIS_OBJECT from mozStorageStatementJSHelper. r=mrbkap 2018-03-22 16:42:03 +01:00
taskcluster Update sixgill to ab06fc42cf0f for bug 1450379, r=bhackett 2018-03-30 15:33:15 -07:00
testing Bug 1440377 [wpt PR 9635] - Move core CORB logic into //services/network., a=testonly 2018-03-31 22:32:49 +01:00
third_party No bug - Revendor rust dependencies 2018-03-28 20:23:10 +00:00
toolkit Backed out changeset dcd8ba6a9028 (bug 1429394) for build bustages. CLOSED TREE 2018-03-31 18:05:52 +03:00
tools Bug 1450047 - part 2 - updated in-tree copy of libFuzzer; r=decoder 2018-03-29 14:18:36 -04:00
uriloader Bug 1448025 - make some Android-only uriloader constructors explicit; r=mystor 2018-03-27 10:51:31 -04:00
view Bug 1423551: Use BaseRect access methods instead of member variables in view/. r=jet 2018-01-10 11:16:22 -05:00
widget Bug 1449934 - Remove unnecessary assert in WinCompositorWidget::UpdateCompositorWndSizeIfNecessary() r=jrmuizel 2018-03-29 18:42:09 -07:00
xpcom Bug 1433351 - Add nsBaseHashtable::EntryPtr::OrRemove method to abort nsBaseHashtable::LookupForAdd on miss. r=froydnj 2018-03-28 12:58:49 -04:00
xpfe Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-29 01:00:42 +03:00
.arcconfig Bug 1424950: Add missing repository.callsign to .arcconfig. r=dkl 2017-12-13 15:38:18 +01:00
.clang-format
.clang-format-ignore Bug 1449244 Remove SphinxBase r=drno 2018-03-27 12:04:10 -05:00
.cron.yml
.eslintignore Bug 1399197 - Enable ESLint for osfile.jsm, nsURLFormatter.js and nsHelperAppDlg.js r=standard8 2018-01-10 19:47:43 +00:00
.eslintrc.js Bug 1434446 - Enable no-unused-vars for global scope on jsm files in browser/. r=mossop 2018-03-01 20:06:06 +00:00
.flake8 Bug 1436802 - [lint] Add some tests for the flake8 linter integration r=andi 2018-03-22 17:24:15 -04:00
.gdbinit
.gdbinit_python
.gitignore Bug 1439727 - Ignore third_party/python/psutil/tmp/ in VCS; r=nalexander 2018-03-07 08:59:48 -08:00
.hgignore Bug 1439727 - Ignore third_party/python/psutil/tmp/ in VCS; r=nalexander 2018-03-07 08:59:48 -08:00
.hgtags No bug - Tagging mozilla-central fdd1a0082c71673239fc2f3a6a93de889c07a1be with FIREFOX_NIGHTLY_60_END a=release DONTBUILD CLOSED TREE 2018-03-12 13:18:08 +00:00
.inferconfig
.lldbinit
.mailmap NO BUG - Use ato's new address. r=me 2018-02-26 15:59:29 +00:00
.taskcluster.yml Bug 1447460: Don't create a dummy pushlog-id index for cron tasks; r=dustin 2018-02-23 11:34:23 -07:00
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1447734 - Specify Google Play Services library version in Gradle r=nalexander 2018-03-22 14:35:38 -05:00
Cargo.lock No bug - Revendor rust dependencies 2018-03-28 20:23:10 +00:00
Cargo.toml Bug 1447998 - Update serde patching to go with WR PR 2577. r=jrmuizel 2018-03-28 09:11:53 -04:00
client.mk
client.py
CLOBBER Bug 1445465 - Part 4: Clobber for ICU update. r=clobber 2018-03-27 07:59:01 -07:00
configure.in
configure.py
GNUmakefile
gradle.properties Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella 2017-11-07 20:26:43 -08:00
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1445398 - Do not re-generate buildid.h for every Tup build. r=mshal 2018-03-22 16:03:12 -07:00
moz.build Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj 2018-03-14 21:44:46 +01:00
moz.configure Bug 1435424 - Remove doxygen support from the build system. r=gps 2018-02-02 14:24:18 -08:00
mozilla-config.h.in Bug 1431803 Turn __try into if(true) and __except into else in the chromium sandbox code r=bobowen,glandium 2018-01-22 12:18:51 -06:00
npm-shrinkwrap.json Bug 1450097 - Don't allow legacy add-ons to be installed via policy. r=Felipe 2018-03-29 18:05:26 -05:00
old-configure.in Bug 1448978 - use more aggressive optimization flags for clang-cl; r=chmanchester 2018-03-26 18:37:00 -04:00
package.json Bug 1443093 - Update eslint-plugin-no-unsanitized to 3.0.0 / eslint to 4.18.2. r=mossop 2018-03-05 10:34:38 +00:00
README.txt
settings.gradle
test.mozbuild

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

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/