haikuwebkit/LayoutTests/webarchive
Rob Buis 3664f7d2b2 Use UTF-8 encoding for empty main resource loads
https://bugs.webkit.org/show_bug.cgi?id=220227

Patch by Rob Buis <rbuis@igalia.com> on 2021-01-03
Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

Update improved test results.

* web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01-expected.txt:
* web-platform-tests/html/browsers/windows/browsing-context-expected.txt:

Source/WebCore:

Unless specified otherwise, documents have UTF-8 encoding [1]. Since [2]
does not mention encoding, use UTF-8 encoding explicitly for empty main
loads.

[1] https://dom.spec.whatwg.org/#concept-document-type
[2] https://html.spec.whatwg.org/#initialise-the-document-object (Step 7)

Tests: imported/w3c/web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html
       imported/w3c/web-platform-tests/html/browsers/windows/browsing-context.html
       http/wpt/html/browsers/windows/browsing-context.html

Behavior matches Chrome and Firefox.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::maybeLoadEmpty):

LayoutTests:

Update improved test results.

* http/wpt/html/browsers/windows/browsing-context-expected.txt:
* platform/mac/webarchive/archive-empty-frame-source-expected.png:
* webarchive/archive-empty-frame-source-expected.webarchive:

Canonical link: https://commits.webkit.org/232724@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-03 19:25:43 +00:00
..
loading Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
resources
adopt-attribute-styled-body-webarchive-expected.webarchive ASSERT(!childItemWithTarget(child->target())) is hit in HistoryItem::addChildItem() 2018-05-07 18:55:15 +00:00
adopt-attribute-styled-body-webarchive.html Use testRunner instead of layoutTestController in transforms, transitions, traversal, userscripts, webarchive, webaudio, and webintents tests 2012-06-16 03:42:58 +00:00
adopt-attribute-styled-node-webarchive-expected.webarchive
adopt-attribute-styled-node-webarchive.html
adopt-inline-styled-node-webarchive-expected.webarchive
adopt-inline-styled-node-webarchive.html
archive-empty-frame-dom-expected.webarchive id of iframe incorrectly sets window name 2015-10-28 04:40:04 +00:00
archive-empty-frame-dom.html
archive-empty-frame-source-expected.webarchive Use UTF-8 encoding for empty main resource loads 2021-01-03 19:25:43 +00:00
archive-empty-frame-source.html
archive-with-unencoded-url-expected.webarchive
archive-with-unencoded-url.html
copy-surrogate-char-crash-expected.txt
copy-surrogate-char-crash.html
css-page-rule-crash-expected.webarchive
css-page-rule-crash.html
doctype-expected.webarchive
doctype.html
ignore-noscript-if-scripting-enabled-expected.webarchive
ignore-noscript-if-scripting-enabled.html
test-body-background-expected.webarchive
test-body-background.html
test-css-import-expected.webarchive
test-css-import.html
test-css-url-resources-in-stylesheets-expected.webarchive
test-css-url-resources-in-stylesheets.html Use testRunner instead of layoutTestController in transforms, transitions, traversal, userscripts, webarchive, webaudio, and webintents tests 2012-06-16 03:42:58 +00:00
test-css-url-resources-inline-styles-expected.webarchive
test-css-url-resources-inline-styles.html
test-duplicate-resources-expected.webarchive ASSERT(!childItemWithTarget(child->target())) is hit in HistoryItem::addChildItem() 2018-05-07 18:55:15 +00:00
test-duplicate-resources.html
test-frameset-expected.webarchive
test-frameset.html
test-img-src-expected.webarchive
test-img-src.html
test-input-src-expected.webarchive
test-input-src.html
test-link-href-expected.webarchive
test-link-href.html
test-link-rel-icon-expected.webarchive
test-link-rel-icon.html
test-object-data-expected.webarchive
test-object-data.html
test-script-src-expected.webarchive
test-script-src.html
test-table-background-expected.webarchive
test-table-background.html
test-td-background-expected.webarchive
test-td-background.html
test-xml-stylesheet-expected.webarchive
test-xml-stylesheet.xml