Description was changed from ========== Update and fix sendBeacon() redirect behavior. Refresh the implementation to ...
4 years, 4 months ago
(2016-07-27 16:04:33 UTC)
#3
Description was changed from
==========
Update and fix sendBeacon() redirect behavior.
Refresh the implementation to follow the specification changes in
https://github.com/w3c/beacon/pull/{33, 34}
R=
BUG=628762
==========
to
==========
Update and fix sendBeacon() redirect behavior.
Refresh the implementation to follow the specification changes in
https://github.com/w3c/beacon/pull/33https://github.com/w3c/beacon/pull/34
In particular, correctly flag a CORS-disallowed redirect as not to
be followed by WebURLLoader.
R=
BUG=628762
==========
4 years, 4 months ago
(2016-07-27 17:32:32 UTC)
#9
Dry run: This issue passed the CQ dry run.
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-blob.html File third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-blob.html (right): https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-blob.html#newcode4 third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-blob.html:4: <script src="/js-test-resources/js-test.js"></script> mkwst@ has sent a mail encouraging use ...
4 years, 4 months ago
(2016-07-28 07:21:57 UTC)
#10
4 years, 4 months ago
(2016-07-28 08:28:20 UTC)
#11
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-blob.html
(right):
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-blob.html:4:
<script src="/js-test-resources/js-test.js"></script>
On 2016/07/28 07:21:57, tyoshino wrote:
> mkwst@ has sent a mail encouraging use of testharness.js for new tests and
there
> were basically no objection. Shall we follow that?
>
>
https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/testharne...
>
https://sites.google.com/a/chromium.org/dev/developers/testing/webkit-layout-...
No, I don't think we should for one beacon test.
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/loader/BeaconLoader.cpp (right):
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/loader/BeaconLoader.cpp:36: virtual const
AtomicString getContentType() const = 0;
On 2016/07/28 07:21:57, tyoshino wrote:
> BeaconString returns the type including the charset parameter while the
> multipart boundary parameter is omitted. I understand it's fine for checking
> simpleness, but let's make them consistent. E.g. name it
> getMIMETypeWithoutParameters() or just getMIMEType() and add a comment saying
> that parameters are ignored, and then, make BeaconString's return only
> "text/plain".
getContentType() implements what
https://fetch.spec.whatwg.org/#concept-bodyinit-extract defines, so I think it
is fine to keep it like this. i.e., that we currently re-use an simple-header
predicate to check these values is an implementation detail, and not something
we should assume will be used always.
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/loader/BeaconLoader.cpp:92: }
On 2016/07/28 07:21:57, tyoshino wrote:
> do the extraction in the constructor and use it saved in m_contentType here?
or
> there will be a dependency that getContentType() must be called after
> serialize() which might cause a bug in the future.
Good idea, much better; done.
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/loader/BeaconLoader.cpp:129: const AtomicString
getContentType() const { return nullAtom; }
On 2016/07/28 07:21:57, tyoshino wrote:
> be consistent with L123-124?
No, that would make ArrayBuffer-backed follow CORS, which it shouldn't per spec.
I'd be prepared to align with the spec and not set a Content-Type request
header.. but I'd prefer to make that change separately from this one, lest there
is trouble.
https://codereview.chromium.org/2177383006/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/loader/BeaconLoader.cpp:267: passedNewRequest =
WebURLRequest();
On 2016/07/28 07:21:57, tyoshino wrote:
> This is ok but I wonder if you had to add this to make it work or just for
> safety.
It won't work without it (a longer-standing bug.)
sof
The CQ bit was checked by sigbjornf@opera.com to run a CQ dry run
4 years, 4 months ago
(2016-07-28 08:28:42 UTC)
#12
Description was changed from ========== Update and fix sendBeacon() redirect behavior. Refresh the implementation to ...
4 years, 4 months ago
(2016-07-28 13:23:01 UTC)
#19
Message was sent while issue was closed.
Description was changed from
==========
Update and fix sendBeacon() redirect behavior.
Refresh the implementation to follow the specification changes in
https://github.com/w3c/beacon/pull/33https://github.com/w3c/beacon/pull/34
In particular, correctly flag a CORS-disallowed redirect as not to
be followed by WebURLLoader.
R=
BUG=628762
==========
to
==========
Update and fix sendBeacon() redirect behavior.
Refresh the implementation to follow the specification changes in
https://github.com/w3c/beacon/pull/33https://github.com/w3c/beacon/pull/34
In particular, correctly flag a CORS-disallowed redirect as not to
be followed by WebURLLoader.
R=
BUG=628762
==========
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago
(2016-07-28 13:23:02 UTC)
#20
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
commit-bot: I haz the power
Description was changed from ========== Update and fix sendBeacon() redirect behavior. Refresh the implementation to ...
4 years, 4 months ago
(2016-07-28 13:24:18 UTC)
#21
Issue 2177383006: Update and fix sendBeacon() redirect behavior.
(Closed)
Created 4 years, 4 months ago by sof
Modified 4 years, 4 months ago
Reviewers: tyoshino (SeeGerritForStatus), Nate Chapin
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 12