Alexandru Michis
53e33238e3
Backed out 12 changesets (bug 1731982, bug 1736401) for causing crashes. a=backout
...
DONTBUILD
Backed out changeset ab85eef8a4fd (bug 1736401)
Backed out changeset 347ce2439936 (bug 1731982)
Backed out changeset fa0ff1505daa (bug 1731982)
Backed out changeset 5b1f2b0a5673 (bug 1731982)
Backed out changeset 4adc65d2f1a3 (bug 1731982)
Backed out changeset a8700204af07 (bug 1731982)
Backed out changeset 88bd00ed8d94 (bug 1731982)
Backed out changeset 80bd8c79b931 (bug 1731982)
Backed out changeset 58ca3a94fec0 (bug 1731982)
Backed out changeset 0b28570dea43 (bug 1731982)
Backed out changeset 23524ce67bb9 (bug 1731982)
Backed out changeset d29cc06a65db (bug 1731982)
2021-11-09 09:23:38 +02:00
Tim Huang
8cf271c8bb
Bug 1731982 - Part 11: Set the IsThirdPartyContextToTopWindow flag to the main worker script loading channel. r=asuth
...
When loading the main worker script, we will need to get the clientInfo
for the loading channel. However, the loading channel is created in
content processes and the `IsThirdPartyContextToTopWindow` won't be set
in this case. So, we will get an incorrect clientInfo with a wrong
foreign patitioned principal.
To resolve this, we have to set the flag in the content processes so
that we can get a correct clientInfo. The flag comes from the
workerPrivate which reflects the fact if the worker was created in a
third-party context. And the loading channel should have the same flag
as the document which creates the worker.
Differential Revision: https://phabricator.services.mozilla.com/D129060
2021-11-08 14:30:57 +00:00
Eden Chuang
d545418095
Bug 1577346 - P3 Make InternalResponse be SafeRefcounted. r=dom-worker-reviewers,ytausky
...
Depends on D126243
Differential Revision: https://phabricator.services.mozilla.com/D126244
2021-11-08 13:29:32 +00:00
Simon Giesecke
c85dd9850f
Bug 1678561 - Fix includes in dom/workers to some degree. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D97741
2020-11-26 13:21:15 +00:00
Simon Giesecke
46908cfb51
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Andi-Bogdan Postelnicu
7ac411be49
Bug 1626555 - Add dom/workers to the list of non-unified-build-compatible directories. r=sg
...
Differential Revision: https://phabricator.services.mozilla.com/D97170
2020-11-16 19:57:14 +00:00
Razvan Maries
f99b00ee89
Backed out 2 changesets (bug 1626555) as per Andi's request. CLOSED TREE
...
Backed out changeset 22e23d9340a2 (bug 1626555)
Backed out changeset 02ea10ade875 (bug 1626555)
2020-11-16 18:45:15 +02:00
Andi-Bogdan Postelnicu
9d17b80020
Bug 1626555 - Add dom/workers to the list of non-unified-build-compatible directories. r=sg
...
Differential Revision: https://phabricator.services.mozilla.com/D97170
2020-11-16 15:56:30 +00:00
Christoph Kerschbaumer
4bfa1cbf21
Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92087
2020-10-08 16:55:25 +00:00
Christoph Kerschbaumer
df7d9d5329
Bug 1666751: Use simple and never failing LoadInfo() getter because all channels should have a loadinfo r=freddyb,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D91119
2020-09-23 12:49:40 +00:00
Sonia Singla
031ef8acbe
Bug 1528649 - Remove the context parameter from nsInputStreamPump::AsyncRead. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D85154
2020-08-05 11:21:51 +00:00
Andrew Sutherland
e18cc98142
Bug 1634872 - Correct spec compliance issue. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D81114
2020-07-19 18:05:10 +00:00
Simon Giesecke
c7bc939952
Bug 1652960 - Remove unnecessary includes from Document.h. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D83634
2020-07-15 15:48:53 +00:00
Frederik Braun
617d3006d9
Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
...
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Logan Smyth
af5b174fa2
Bug 780269 - Pass (X-)SourceMap header to SpiderMonkey for workers. r=perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70293
2020-07-07 21:19:58 +00:00
Simon Giesecke
a69d79b6db
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Simon Giesecke
e99ddcd933
Bug 1648449 - Use NotNull for CacheCreator::mLoaders. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81076
2020-06-30 08:35:19 +00:00
Simon Giesecke
4f3e68f174
Bug 1648449 - Use TransformIntoNewArray in Load. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81075
2020-06-30 08:35:01 +00:00
Simon Giesecke
8d4eeb1092
Bug 1648449 - Remove intermediate conversion from iterators to indexes. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81073
2020-06-30 08:34:49 +00:00
Simon Giesecke
a459bb4459
Bug 1648449 - Pass Span instead of indexes to ScriptExecutorRunnable. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81072
2020-06-30 08:34:36 +00:00
Simon Giesecke
7ec1c7e87d
Bug 1648449 - Use range-based for for iterating mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81070
2020-06-30 08:34:21 +00:00
Simon Giesecke
940f4f9b99
Bug 1648449 - Stop passing around indexes to mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81069
2020-06-30 08:34:09 +00:00
Simon Giesecke
08555f2d4f
Bug 1648449 - Improve variable naming and comments related to script scheduling. r=asuth,dom-workers-and-storage-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D81499
2020-06-30 08:33:51 +00:00
Simon Giesecke
b6858c46d9
Bug 1648449 - Use nsTArrayView for ScriptLoaderRunnable::mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81068
2020-06-29 11:58:28 +00:00
Simon Giesecke
d9817df7e4
Bug 1648440 - Use std::find_if and IIFE instead of custom loops in ScriptLoader. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81057
2020-06-26 16:17:29 +00:00
Eden Chuang
ceae0238ce
Bug 1642149 - P2 ImportScript() in workers must respect the coressponding COEP header r=dom-workers-and-storage-reviewers,perry
...
When loading a sub-script in workers, the corresponding COEP must be set on the channel's nsILoadInfo, such that its CORP header can be checked as expected.
Differential Revision: https://phabricator.services.mozilla.com/D77720
2020-06-19 13:23:35 +00:00
Coroiu Cristina
c2217fdc9c
Backed out 2 changesets (bug 1642149) for perma wpt failures at /fetch/cross-origin-resource-policy/iframe-loads.html
...
Backed out changeset bc5cfb22c1d7 (bug 1642149)
Backed out changeset c7a1a36d6d91 (bug 1642149)
2020-06-19 07:41:47 +03:00
Eden Chuang
00f21a0c48
Bug 1642149 - P2 ImportScript() in workers must respect the coressponding COEP header r=dom-workers-and-storage-reviewers,perry
...
When loading a sub-script in workers, the corresponding COEP must be set on the channel's nsILoadInfo, such that its CORP header can be checked as expected.
Differential Revision: https://phabricator.services.mozilla.com/D77720
2020-06-18 10:02:51 +00:00
Andrea Marchesini
aaa2675e18
Bug 1639833 - IntrisincStoragePrincipal should always be partitioned - part 2 - Expose PartitionedPrincipal, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D76915
2020-06-03 06:09:52 +00:00
Csoregi Natalia
ed3350ab9b
Backed out 5 changesets (bug 1639833) for failures on browser_blockingIndexedDbInWorkers.js. CLOSED TREE
...
Backed out changeset 6b4f76d65540 (bug 1639833)
Backed out changeset c77acba1aacb (bug 1639833)
Backed out changeset 30c97666919e (bug 1639833)
Backed out changeset d769b313441a (bug 1639833)
Backed out changeset ed41b41d1b03 (bug 1639833)
2020-06-02 15:02:31 +03:00
Andrea Marchesini
88b78d701a
Bug 1639833 - IntrisincStoragePrincipal should always be partitioned - part 2 - Expose PartitionedPrincipal, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D76915
2020-06-02 08:28:05 +00:00
Noemi Erli
2b060384fc
Backed out 5 changesets (bug 1639833) for causing sessionstorage related failures CLOSED TREE
...
Backed out changeset b36af8d9db34 (bug 1639833)
Backed out changeset 712c11904dbe (bug 1639833)
Backed out changeset 14f1e4783582 (bug 1639833)
Backed out changeset b7f14c4cfe5d (bug 1639833)
Backed out changeset b4b25034dd83 (bug 1639833)
2020-06-01 19:31:50 +03:00
Andrea Marchesini
5ffef561ac
Bug 1639833 - IntrisincStoragePrincipal should always be partitioned - part 2 - Expose PartitionedPrincipal, r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D76915
2020-06-01 11:57:46 +00:00
Eden Chuang
b3acd18a4c
Bug 1603168 - Reject Cache.match and Cache.matchAll if the response doesn't match the caller context coep r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70020
2020-05-23 01:44:58 +00:00
Eden Chuang
0adc595ba8
Bug 1532287 - P1 Saving the loading document/worker's COEP in InternalRequest. r=dom-workers-and-storage-reviewers,perry
...
Currently, the worker's COEP value is saved in WorkerPrivate and it is not respected for fetch/cache API in workers.
This patch saving the COEP value which fetch/cache API should be respected when using in workers.
Notice that for the dedicated workers, it is not only respected to worker's COEP but also its owner's.
For fetch in workers, P2 will propagate the COEP value through nsILoadInfo to HttpChannels, such that COEP can be respected in parent process when calling ProcessCrossOriginResourcePolicyHeader() and ProcessCrossOriginEmbedderPolicyHeader().
For cache in workers. We handle it in bug 1603168. COEP will be propagated through CacheRequest to the parent process and respected in CacheOpParent::OnOpComplete().
Differential Revision: https://phabricator.services.mozilla.com/D73689
2020-05-19 12:50:36 +00:00
Philip Chimento
4919919121
Bug 1629293 - Make JS::ErrorReportBuilder::init exclusively support JS::ExceptionStack. r=evilpie,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D73522
2020-05-14 04:44:33 +00:00
Philip Chimento
cd81048a74
Bug 1629293 - Expose js::ErrorReport in public API. r=evilpie
...
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.
Differential Revision: https://phabricator.services.mozilla.com/D73521
2020-05-14 04:44:15 +00:00
Narcis Beleuzu
375512629d
Backed out 5 changesets (bug 1505129, bug 1506323, bug 1629293) for bustages on testPrintError.cpp . CLOSED TREE
...
Backed out changeset ad1ccad76686 (bug 1629293)
Backed out changeset 452e9ab721bd (bug 1629293)
Backed out changeset 72a63e290177 (bug 1629293)
Backed out changeset faeed99f813e (bug 1505129)
Backed out changeset 7bd84a644d2b (bug 1506323)
2020-05-13 21:23:59 +03:00
Philip Chimento
0020948e31
Bug 1629293 - Make JS::ErrorReportBuilder::init exclusively support JS::ExceptionStack. r=evilpie,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D73522
2020-05-13 16:10:47 +00:00
Philip Chimento
5959a95549
Bug 1629293 - Expose js::ErrorReport in public API. r=evilpie
...
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.
Differential Revision: https://phabricator.services.mozilla.com/D73521
2020-05-13 16:10:39 +00:00
ssengupta
a7115a9506
Bug 1635399 - Function PrincipalInfoToPrincipal now returns Result<nsCOMPtr<nsIPrincipal>, nsresult> r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D73868
2020-05-12 19:02:05 +00:00
Perry Jiang
65dd18898a
Bug 1618546 - give worker debugger globals their own clients r=asuth,webidl,smaug
...
- Worker debugger globals gets a client with a null principal
- Ensure globals are created before script loads
- Introduce WorkerGlobalScopeBase to share code
- Transfer ClientSource ownership from WorkerPrivate to worker globals
- Require getting clients from the globals instead of WorkerPrivate with the
exception of getting the reserved client before the non-debugger global is
created
Differential Revision: https://phabricator.services.mozilla.com/D68936
2020-04-21 06:50:53 +00:00
Eden Chuang
c4652fbd1c
Bug 1575090 - add NS_GetCrossOriginEmbedderPolicyFromHeader r=JuniorHsu,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D46178
2020-04-20 17:21:23 +00:00
Eden Chuang
c3a1c212cc
Bug 1575090 - set COEP for all workers and enforce it when loading Dedicated Workers r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D46177
2020-04-20 17:21:15 +00:00
Jeff Walden
ea376c4f0e
Bug 1626105 - Convert |JS::Evaluate| to |JS::EvaluateDontInflate| semantics, and remove |JS::EvaluateDontInflate|. r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D68911
2020-03-31 01:32:46 +00:00
Kristen Wright
2209bd50ed
Bug 1622111 - Convert security.data_uri.unique_opaque_origin to static pref and remove ClientPrefs. r=njn
...
Converts security.data_uri.unique_opaque_origin to a static pref. This pref was initialized by the ClientManager in ClientPrefs, so this commit also removes those files. Somehow this pref was getting added in VarCache twice, so it also removes the places where the pref was added in Networking.
Differential Revision: https://phabricator.services.mozilla.com/D67185
2020-03-23 16:08:52 +00:00
Stefan Hindli
28db9d8630
Backed out 9 changesets (bug 1622111) for causing mochitest failures in dom/animation/test/mozilla/test_restyles.html CLOSED TREE
...
Backed out changeset c244160797f8 (bug 1622111)
Backed out changeset dd9209f6bd8b (bug 1622111)
Backed out changeset d694c9e7061f (bug 1622111)
Backed out changeset 486aae809f6d (bug 1622111)
Backed out changeset 709266168c41 (bug 1622111)
Backed out changeset ca0d47bb86a8 (bug 1622111)
Backed out changeset caa735c8bb91 (bug 1622111)
Backed out changeset 12397711ab25 (bug 1622111)
Backed out changeset b66002fd1480 (bug 1622111)
2020-03-19 02:47:51 +02:00
Kristen Wright
216d0e4f31
Bug 1622111 - Convert security.data_uri.unique_opaque_origin to static pref and remove ClientPrefs. r=njn
...
Converts security.data_uri.unique_opaque_origin to a static pref. This pref was initialized by the ClientManager in ClientPrefs, so this commit also removes those files. Somehow this pref was getting added in VarCache twice, so it also removes the places where the pref was added in Networking.
Differential Revision: https://phabricator.services.mozilla.com/D67185
2020-03-18 22:12:20 +00:00
Tim Huang
37f162c69d
Bug 1616570 - Part 1: Rename CookieSettings to CookieJarSettings. r=Ehsan
...
Given that we are going to add ContentBlockingAllowList in
CookieSettings, so CookieSettings will be responsible for more stuff than the
cookie behavior and cookie permission. We should use a proper name to
reflect the purpose of it. The name 'CookieSettings' is misleading that
this is only for cookie related stuff. So, we decide to rename
'CookieSettins' to 'CookieJarSettings' which serves better meaning here.
Differential Revision: https://phabricator.services.mozilla.com/D63935
2020-03-04 08:59:08 +00:00
Matt Woodrow
2d22930f78
Bug 1617434 - Move reserved client creation to parent-side with DocumentChannel. r=perry
...
Rather than creating a ClientSource in the content process for the initial URL, this changes us to just create the ClientInfo in the parent, as we do for redirects.
Differential Revision: https://phabricator.services.mozilla.com/D63807
2020-03-01 04:14:00 +00:00