[wpt-sync] Sync PR 38763 - Fix DCHECK in blink::BodyStreamBuffer::EndLoading
Categories
(Core :: DOM: Networking, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38763 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38763
Details from upstream follow.
Adam Rice <ricea@chromium.org> wrote:
Fix DCHECK in blink::BodyStreamBuffer::EndLoading
FetchDataLoaderAsFormData::OnStateChange() would call
DidFetchDataLoadFailed() on parse failure. It then would call it again
when it finished reading the input. The double call to
DidFetchDataLoadFailed() caused a DCHECK failure in
BodyStreamBuffer::EndLoading().Fix it by stopping reading from the input after a parse failure,
ensuring that DidFetchDataLoadFailed() is only called once.BUG=1412007
Change-Id: I38b7815020e85cbdedc38c207c945b1dee011083
Reviewed-on: https://chromium-review.googlesource.com/4296718
WPT-Export-Revision: 1987fcddb2c412d154c9f63ddb0e71dda74636cf
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 1 subtests
Status Summary
Firefox
OK
: 2
FAIL
: 2
Chrome
OK
: 2
PASS
: 2
Safari
OK
: 2
FAIL
: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /fetch/content-type/multipart-malformed.any.html [wpt.fyi]
- Invalid form data should not crash the browser:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- Invalid form data should not crash the browser:
- /fetch/content-type/multipart-malformed.any.worker.html [wpt.fyi]
- Invalid form data should not crash the browser:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- Invalid form data should not crash the browser:
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/29f6e67d4853
https://hg.mozilla.org/mozilla-central/rev/7a4b98fb3135
Description
•