Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Handling of text documents does not comply with modern HTML spec
https://bugs.webkit.org/show_bug.cgi?id=244950 <rdar://problem/99719728> Reviewed by Chris Dumez. The spec language in https://html.spec.whatwg.org/multipage/browsing-the-web.html#read-text, indicates that Text documents must be in no-quirks mode: (7.11.4.3 Set document's mode to "no-quirks".) This is in conflict with the source code in the TextDocument constructor: setCompatibilityMode(DocumentCompatibilityMode::QuirksMode); This causes the following WPT failure: wpt /html/browsers/browsing-the-web/read-text/load-text-plain.html * LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/read-text/load-text-plain-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbobjectstore_putall.tentative.any-expected.txt * LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbobjectstore_putall.tentative.any.worker-expected.txt * LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-set.any-expected.txt * LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-set.any.worker-expected.txt * LayoutTests/platform/glib/fast/loader/text-document-wrapping-expected.txt * LayoutTests/platform/glib/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/rsa_importKey.https.worker-expected.txt * LayoutTests/platform/glib/imported/w3c/web-platform-tests/wasm/jsapi/global/value-set.any-expected.txt * LayoutTests/platform/glib/imported/w3c/web-platform-tests/wasm/jsapi/global/value-set.any.worker-expected.txt * LayoutTests/platform/gtk/fast/forms/targeted-frame-submission-expected.txt * LayoutTests/platform/ios-wk2/fast/forms/targeted-frame-submission-expected.txt * LayoutTests/platform/ios-wk2/fast/loader/text-document-wrapping-expected.txt * LayoutTests/platform/ios/fast/forms/targeted-frame-submission-expected.txt * LayoutTests/platform/ios/fast/loader/text-document-wrapping-expected.txt * LayoutTests/platform/mac/fast/forms/targeted-frame-submission-expected.txt * LayoutTests/platform/mac/fast/loader/text-document-wrapping-expected.txt * LayoutTests/platform/mac/http/tests/misc/acid3-expected.txt * LayoutTests/platform/win/fast/loader/text-document-wrapping-expected.txt * LayoutTests/platform/wincairo/fast/loader/text-document-wrapping-expected.txt * Source/WebCore/html/TextDocument.cpp: Canonical link: https://commits.webkit.org/254389@main
- Loading branch information
1 parent
db0b786
commit e30caa272fe6d8f18f34521fe30ef5c9d97125a8
Showing
20 changed files
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 328x15 | ||
text run at (0,0) width 328: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 328x15 | ||
text run at (0,0) width 328: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
FAIL Checking document metadata for text file assert_equals: expected "CSS1Compat" but got "BackCompat" | ||
PASS Checking document metadata for text file | ||
PASS Checking DOM for text file | ||
PASS Checking contents for text file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 328x15 | ||
text run at (0,0) width 328: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 328x15 | ||
text run at (0,0) width 328: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 336x15 | ||
text run at (0,0) width 336: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 336x15 | ||
text run at (0,0) width 336: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x579 | ||
layer at (0,0) size 800x41 | ||
RenderBlock {HTML} at (0,0) size 800x41 | ||
RenderBody {BODY} at (8,13) size 784x15 | ||
RenderBlock {PRE} at (0,0) size 784x15 | ||
RenderText {#text} at (0,0) size 336x15 | ||
text run at (0,0) width 336: "{\"error\": {\"code\": 404, \"message\": \"404\"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters