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
Implement no-quirks mode for media/plugin/ua-inline documents
https://bugs.webkit.org/show_bug.cgi?id=228832 <rdar://problem/81851619> Reviewed by Chris Dumez. Update Chris Dumez's original patch for 2022, taking into account Bug 244950, which addressed Text documents. * LayoutTests/media/modern-media-controls/media-documents/media-document-audio-ios-sizing.html: Update for non-quirks behavior. * LayoutTests/media/modern-media-controls/media-documents/media-document-audio-ios-sizing-expected.txt: Ditto. * LayoutTests/platform/ipad/media/modern-media-controls/media-documents/media-document-audio-ios-sizing.html: Ditto. * LayoutTests/platform/ipad/media/modern-media-controls/media-documents/media-document-audio-ios-sizing-expected.txt: Ditto. * LayoutTests/platform/mac/editing/pasteboard/copy-standalone-image-expected.html: macOS requires a slightly different expected output, as it appears to include an unexpected <br> in the paste output that does not appear on iOS or GTK. * LayoutTests/platform/mac-wk1/fast/events/standalone-image-drag-to-editable-expected.txt: Rebaseline for non-quirks behavior. * LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/read-media/pageload-image-expected.txt: Update to expect PASS. * LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/read-media/pageload-video-expected.txt: Ditto. * Source/WebCore/html/ImageDocument.cpp: (WebCore::ImageDocument::createDocumentStructure): Use NoQuirksMode. * Source/WebCore/html/MediaDocument.cpp: (WebCore::MediaDocument::MediaDocument): Use NoQuirksMode. * Source/WebCore/html/PluginDocument.cpp: (WebCore::PluginDocumentParser::createDocumentStructure): Configure view with explicit height and width. (WebCore::PluginDocument::PluginDocument): Use NoQuirksMode. * Source/WebCore/loader/SinkDocument.cpp: (WebCore::SinkDocument::SinkDocument): Use NoQuirksMode. Canonical link: https://commits.webkit.org/254526@main
- Loading branch information
1 parent
f8cfeb9
commit fcbca01158eb1b28827ffc219a09bde9f52b10bc
Showing
13 changed files
with
66 additions
and
21 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,3 +1,3 @@ | ||
|
||
FAIL The document for a standalone media file should have one child in the body. assert_equals: Media documents should be in standards mode expected "CSS1Compat" but got "BackCompat" | ||
PASS The document for a standalone media file should have one child in the body. | ||
|
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,3 +1,3 @@ | ||
|
||
FAIL The document for a standalone media file should have one child in the body. assert_equals: Media documents should be in standards mode expected "CSS1Compat" but got "BackCompat" | ||
PASS The document for a standalone media file should have one child in the body. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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 | ||
RenderFrameSet {FRAMESET} at (0,0) size 800x600 | ||
RenderFrame {FRAME} at (0,0) size 800x100 | ||
layer at (0,0) size 785x102 | ||
RenderView at (0,0) size 785x100 | ||
layer at (0,0) size 785x102 | ||
RenderBlock {HTML} at (0,0) size 785x102 | ||
RenderBody {BODY} at (0,0) size 785x102 | ||
RenderBlock {DIV} at (0,0) size 785x102 [border: (1px solid #000000)] | ||
RenderBlock (anonymous) at (1,1) size 783x36 | ||
RenderText {#text} at (0,0) size 702x18 | ||
text run at (0,0) width 702: "This layout test is checks that we don't crash when a stand alone image is dragged into a content editable div. " | ||
RenderBR {BR} at (701,0) size 1x18 | ||
RenderInline {A} at (0,0) size 153x18 [color=#0000EE] | ||
RenderText {#text} at (0,18) size 153x18 | ||
text run at (0,18) width 153: "rdar://problem/5021127" | ||
RenderImage {IMG} at (1,37) size 25x25 | ||
RenderFrame {FRAME} at (0,106) size 800x100 | ||
layer at (0,0) size 800x100 | ||
RenderView at (0,0) size 800x100 | ||
layer at (0,0) size 800x100 | ||
RenderBlock {HTML} at (0,0) size 800x100 | ||
RenderBody {BODY} at (0,0) size 800x100 | ||
RenderImage {IMG} at (0,0) size 25x25 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<html> | ||
<body> | ||
<p>This is an automatic test of copying an image document.</p> | ||
<p>To perform this test manually, click once in the image frame, choose Edit -> Copy | ||
then click in the red box and paste the image. If the image pastes successfully the | ||
test is passed.</p> | ||
|
||
<iframe name="imageframe" src="../../../../editing/resources/abe.png"></iframe> | ||
|
||
<div id="dest" contenteditable="true"><br><img src="../../../../editing/resources/abe.png" style="-webkit-user-select:none;"></div> | ||
<script> | ||
frames['imageframe'].focus(); | ||
</script> | ||
</body> | ||
</html> |
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