Dimi Lee
2aec02089a
Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
...
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.
Differential Revision: https://phabricator.services.mozilla.com/D22111
2019-03-21 07:30:51 +00:00
Nika Layzell
9b066f2565
Bug 1532661 - Part 2: Use a field list macro header for synced fields, r=farre
...
Depends on D22190
Differential Revision: https://phabricator.services.mozilla.com/D22191
2019-03-14 18:51:05 +00:00
Sylvestre Ledru
b31009da86
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Valentin Gosu
e1dd29d55b
Bug 1525036 - Respect CrossOriginPolicy in Fetch r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21416
2019-03-12 08:04:44 +00:00
Csoregi Natalia
f0b59895f9
Backed out 5 changesets (bug 1525036) for browser_httpCrossOriginHeader.js failures. CLOSED TREE
...
Backed out changeset 6717beb3ac53 (bug 1525036 )
Backed out changeset 0c05686bd62a (bug 1525036 )
Backed out changeset 502b0bb796cd (bug 1525036 )
Backed out changeset fa0363d33dbd (bug 1525036 )
Backed out changeset 6391f42aaa6d (bug 1525036 )
2019-03-09 02:39:11 +02:00
Valentin Gosu
756bb02072
Bug 1525036 - Respect CrossOriginPolicy in Fetch r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21416
2019-03-08 15:34:06 +00:00
Andrea Marchesini
3ce93fb8e0
Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-08 09:04:11 +00:00
Ciure Andrei
899292bc3f
Backed out 16 changesets (bug 1525245) for perma failing test_document_cookie.html CLOSED TREE
...
Backed out changeset 3fd27215698f (bug 1525245)
Backed out changeset d9a9e8e77873 (bug 1525245)
Backed out changeset 0e6f7be92e3f (bug 1525245)
Backed out changeset 6790802e2fa5 (bug 1525245)
Backed out changeset a5a9e01116ed (bug 1525245)
Backed out changeset 66e19a0c38dd (bug 1525245)
Backed out changeset fb90d51ba853 (bug 1525245)
Backed out changeset 4772db3625b3 (bug 1525245)
Backed out changeset 9affaf0cb998 (bug 1525245)
Backed out changeset a91b7ebe8bdd (bug 1525245)
Backed out changeset c2a13a7480e1 (bug 1525245)
Backed out changeset abe4482fa137 (bug 1525245)
Backed out changeset b3920c0bcf84 (bug 1525245)
Backed out changeset 0821b81f2724 (bug 1525245)
Backed out changeset 70bed2ad7899 (bug 1525245)
Backed out changeset 5f72ba232cc8 (bug 1525245)
2019-03-07 17:54:18 +02:00
Andrea Marchesini
83054c5a7a
Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-07 10:21:15 +00:00
Dorel Luca
9a275b4283
Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
...
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Andrea Marchesini
88186754be
Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-06 17:04:06 +00:00
Jonathan Kingston
8397774fdf
Bug 1525319 - Removing context from OnDataAvailable r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-27 23:42:27 +00:00
Jonathan Kingston
3ef1df37e1
Bug 1525319 - Removing context from OnStopRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20770
2019-02-27 23:41:31 +00:00
Jonathan Kingston
649c453cbd
Bug 1525319 - Removing context from OnStartRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20769
2019-02-27 23:41:04 +00:00
Ehsan Akhgari
928e5dca8c
Bug 1530076 - Part 1: Add support for modifying the default referrer policy that is applied to third-party trackers when the cookie policy is set to reject third-party trackers; r=valentin
...
This is more complex than merely modifying NS_GetDefaultReferrerPolicy()
because at the time most (all?) callers call nsIHttpChannel::SetReferrer/
nsIHttpChannel::SetReferrerWithPolicy before the channel is opened,
which means we won't know whether the channel is a tracking resource or
not yet. So we would need to re-evaluate this decision after that
information becomes available. For that, we need to remember the
original URI argument passed to these functions since that information
is currently destroyed and isn't persisted anywhere in the system.
Differential Revision: https://phabricator.services.mozilla.com/D20901
2019-02-26 21:30:27 +00:00
Dorel Luca
2dfae9a24a
Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
...
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston
b6e28d0b8e
Bug 1525319 - Removing context from OnDataAvailable r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-24 20:27:55 +00:00
Jonathan Kingston
4334f239c3
Bug 1525319 - Removing context from OnStopRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20770
2019-02-24 20:26:59 +00:00
Jonathan Kingston
d6fffaf979
Bug 1525319 - Removing context from OnStartRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20769
2019-02-24 20:26:16 +00:00
Cosmin Sabou
99989bdc66
Merge mozilla-inbound to mozilla-central. a=merge
2019-02-21 05:42:03 +02:00
Christoph Kerschbaumer
1a72eb2a6b
Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku
2019-02-20 13:27:25 +01:00
Andrea Marchesini
d34f163c27
Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20200
2019-02-20 10:05:42 +00:00
Andrea Marchesini
1cfb4d9d7a
Bug 1487113 - Expose nsICacheInfoChannel in Respose object for wasm content-type, r=valentin,nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D19823
2019-02-20 10:05:35 +00:00
Ciure Andrei
802d0480fd
Backed out 3 changesets (bug 1487113) for perma failing test_alt-data_stream_wrap.js CLOSED TREE
...
Backed out changeset 831ac8c662c0 (bug 1487113 )
Backed out changeset a8406df01e95 (bug 1487113 )
Backed out changeset 1e97c3573ce6 (bug 1487113 )
2019-02-19 11:43:13 +02:00
Andrea Marchesini
dbce6a100e
Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20200
2019-02-19 07:38:31 +00:00
Andrea Marchesini
f9a72c192a
Bug 1487113 - Expose nsICacheInfoChannel in Respose object for wasm content-type, r=valentin,nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D19823
2019-02-19 07:38:03 +00:00
Jonathan Kingston
58708e007c
Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
...
Replacing js and text occurences of asyncOpen2
Replacing open2 with open
Differential Revision: https://phabricator.services.mozilla.com/D16885
2019-02-12 16:08:25 +00:00
Andrea Marchesini
2bbdcc6d2e
Bug 1417463 - Default accept header should follow the fetch spec, r=mayhemer
2019-01-08 23:36:16 +01:00
Emilio Cobos Álvarez
dc336a73ba
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Andrea Marchesini
5e930d8201
Bug 1508699 - Fetch() should not send lowercase header names, r=asuth
2018-12-19 15:48:30 +01:00
Andrea Marchesini
75ca6243ac
Bug 1513647 - MutableBlobStorage should be used in eCouldBeInTemporaryFile mode for fetch(), r=smaug
2018-12-19 15:48:29 +01:00
Andrea Marchesini
5bd736a9d8
Bug 1511436 - Cleanup URL-Classifier code - part 0 - use of StaticPrefs, r=dimi
2018-12-14 12:40:16 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Junior Hsu
4ef5260e1c
Bug 1505844 - nullcheck of non-ClassOfService channel in FetchDriver to avoid crash r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D12363
2018-11-28 22:32:32 +00:00
Andrea Marchesini
fc8fb72ae3
Bug 1508661 - origin header should not be set for GET and HEAD requests, r=asuth
2018-11-21 11:33:47 +01:00
Junior Hsu
4f6acffdfc
Bug 1277496 - use nsHttp::Origin instead of literal cstring r=francois
...
Differential Revision: https://phabricator.services.mozilla.com/D10752
2018-11-05 21:40:36 +00:00
Andrea Marchesini
101843354c
Bug 1501354 - Fetch() should not block the loadgroup from completing, r=bz
2018-10-27 08:55:20 +02:00
Andrea Marchesini
57bd031744
Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb
2018-10-23 08:17:13 +02:00
Valentin Gosu
c5da4687a9
Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
...
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.
For example:
var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
cc.preferAlternativeDataType("js-bytecode", "text/javascript");
cc.preferAlternativeDataType("ammended-text", "text/plain");
cc.preferAlternativeDataType("something-else", "");
When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".
The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.
Differential Revision: https://phabricator.services.mozilla.com/D8071
2018-10-17 13:58:30 +00:00
Dorel Luca
c3aaaf326f
Backed out 2 changesets (bug 1487100) for XPCShell failures in netwerk/test/unit_ipc/test_alt-data_simple_wrap.js
...
Backed out changeset 7f9d03c29a6f (bug 1487100)
Backed out changeset dd1c31ea78c2 (bug 1487100)
2018-10-18 05:51:42 +03:00
Valentin Gosu
6c76c8f00e
Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
...
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.
For example:
var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
cc.preferAlternativeDataType("js-bytecode", "text/javascript");
cc.preferAlternativeDataType("ammended-text", "text/plain");
cc.preferAlternativeDataType("something-else", "");
When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".
The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.
Differential Revision: https://phabricator.services.mozilla.com/D8071
2018-10-17 13:58:30 +00:00
Thomas Wisniewski
bbae21ea2c
Bug 1496621 - reject Fetch promises with (informative) TypeErrors when decoding fails, per spec; r=baku
...
reject Fetch promises with (informative) TypeErrors when decoding fails, per spec
Differential Revision: https://phabricator.services.mozilla.com/D7970
2018-10-08 23:57:23 +00:00
Thomas Wisniewski
28e3006ebc
Bug 1491504 - shortcut blob responses from XHR and fetch when the URL is a blob URL; r=baku
...
shortcut blob responses from XHR and fetch when the URL is a blob URL
Differential Revision: https://phabricator.services.mozilla.com/D7253
2018-10-06 17:34:24 +00:00
Ciure Andrei
4fc1114efc
Backed out changeset c5ac0cb25238 (bug 1491504) for FetchConsumer.cpp build bustages CLOSED TREE
2018-10-06 02:58:44 +03:00
Thomas Wisniewski
f232095b69
Bug 1491504 - shortcut blob responses from XHR and fetch when the URL is a blob URL; r=baku
...
shortcut blob responses from XHR and fetch when the URL is a blob URL
Differential Revision: https://phabricator.services.mozilla.com/D7253
2018-10-05 20:23:55 +00:00
Tom Tung
0323724dd9
Bug 1486445 - P1 - Propagate the sw internally redirected URL to fetching request; r=asuth
...
Bug 1222008 didn't propagate a sw redirected URL to outer response properly. To
fix that this patch mainly make a redirecting request be overwritten while it's
redirected by a service worker. This patch also add a private setter function
for InternalRequest and a public checking function to avoid that function from
being used widely.
Differential Revision: https://phabricator.services.mozilla.com/D4762
2018-09-12 12:44:30 +00:00
Thomas Wisniewski
d11a7a409d
Bug 1482752 - Have Fetch bodies use File blobs for local files instead of regular blobs. r=baku
...
Have Fetch bodies use File blobs for local files instead of regular blobs.
Differential Revision: https://phabricator.services.mozilla.com/D3183
2018-09-11 19:13:15 +00:00
Cosmin Sabou
2f27839c75
Backed out changeset 68805212630a (bug 1482752) for causing build bustages on dom/fetch. CLOSED TREE
2018-09-08 20:46:04 +03:00
Thomas Wisniewski
611f5fbc99
Bug 1482752 - Have Fetch bodies use File blobs for local files instead of regular blobs. r=baku
...
Have Fetch bodies use File blobs for local files instead of regular blobs.
Differential Revision: https://phabricator.services.mozilla.com/D3183
2018-09-08 14:34:37 +00:00
Andrea Marchesini
b7196cdaf0
Bug 1478101 - Split AbortSignal in 2 classes: AbortSignal and AbortSignalImpl, r=bz
2018-08-26 14:16:21 +02:00