about:blank should use UTF-8 |
||||
Issue descriptionChrome Version: 70.0.3522.0 (Official Build) canary (64-bit) OS: macOS 10.13.6 What steps will reproduce the problem? (1) Navigate to about:blank. (2) Open DevTools and run "document.charset" What is the expected result? "UTF-8" is returned. Per the Fetch Standard (https://fetch.spec.whatwg.org/#concept-scheme-fetch) the equivalent `Content-Type` header for "about:blank" should be `text/html;charset=utf-8`. Firefox handles this per spec (returns UTF-8) but Safari handles it similarly with Chrome. What happens instead? "windows-1252" is returned.
,
Aug 15
,
Aug 16
Can not reproduce at 70.0.3524.0 on Linux and 68.0.3440.87 on CrOS. I think this issue was fixed several years ago, and I closed a similar bug recently. https://bugs.chromium.org/p/chromium/issues/detail?id=165083 Probably more steps are needed to reproduce the issue?
,
Aug 16
No, not really. There are no more steps. See https://drive.google.com/file/d/1EBJdw6j77iMVVFEhw-FWjRi6g8VHxSus/view?usp=sharing for a video of the reproduction.
,
Aug 16
,
Aug 20
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c75d117bb665b4bb742cba1e0a661d484ee4f2f4 commit c75d117bb665b4bb742cba1e0a661d484ee4f2f4 Author: Timothy Gu <timothygu@chromium.org> Date: Mon Aug 20 04:32:48 2018 Make about:blank page have a charset of UTF-8 This brings us into alignment with the Fetch Standard as well as Firefox and Edge. Bug: 165083 , 874536 Change-Id: Id06d07d301aeae8bd0c48bfe94df68cf1ed68db9 Reviewed-on: https://chromium-review.googlesource.com/1176263 Reviewed-by: Nate Chapin <japhet@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Timothy Gu <timothygu@chromium.org> Cr-Commit-Position: refs/heads/master@{#584357} [modify] https://crrev.com/c75d117bb665b4bb742cba1e0a661d484ee4f2f4/third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html [delete] https://crrev.com/30fa2a672263bf9ca456255d198d7591987c3d90/third_party/WebKit/LayoutTests/external/wpt/html/browsers/windows/browsing-context-expected.txt [modify] https://crrev.com/c75d117bb665b4bb742cba1e0a661d484ee4f2f4/third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-origin-url-expected.txt [modify] https://crrev.com/c75d117bb665b4bb742cba1e0a661d484ee4f2f4/third_party/blink/renderer/core/loader/document_loader.cc |
||||
►
Sign in to add a comment |
||||
Comment 1 by timothygu@chromium.org
, Aug 15