Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Issue 1698883005: Remove internal use of Document::defaultCharset (Closed)

Created:
4 years, 10 months ago by philipj_slow
Modified:
4 years, 10 months ago
Reviewers:
tkent
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove internal use of Document::defaultCharset This is in preparation for removing document.defaultCharset itself. The third argument for FormDataBuilder::encodingFromAcceptCharset was added in https://codereview.chromium.org/25417007 to handle a situation where a form was inserted into an ImageDocument, which did not have an encoding. In https://codereview.chromium.org/1180793002 the charset attribute and its aliases was made to never return null by initializing DocumentEncodingData to UTF-8, and so the fallback to defaultCharset in encodingFromAcceptCharset is now unreachable. While in the area, clean up encodingFromAcceptCharset slightly to take an explicit fallback encoding that must be valid, and use a range-based for loop for readability. TEST=LayoutTests/fast/images/image-page-injected-script-crash.html BUG=567738 Committed: https://crrev.com/177c3bb89bc8072ac8b150e20a816b7e0f752802 Cr-Commit-Position: refs/heads/master@{#375835}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -16 lines) Patch
M third_party/WebKit/Source/core/loader/FormSubmission.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/network/FormDataEncoder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/network/FormDataEncoder.cpp View 1 chunk +7 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1698883005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1698883005/1
4 years, 10 months ago (2016-02-17 04:03:54 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 05:10:55 UTC) #5
philipj_slow
PTAL
4 years, 10 months ago (2016-02-17 05:15:41 UTC) #7
tkent
lgtm
4 years, 10 months ago (2016-02-17 06:58:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1698883005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1698883005/1
4 years, 10 months ago (2016-02-17 08:57:35 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-17 09:04:38 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 09:05:55 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/177c3bb89bc8072ac8b150e20a816b7e0f752802
Cr-Commit-Position: refs/heads/master@{#375835}

Powered by Google App Engine
This is Rietveld 408576698