Bug 141699

Summary: [GTK] Layout Tests for experimental <attachment> element are failing since added
Product: WebKit Reporter: Marcos Chavarría Teijeiro (irc: chavaone) <chavarria1991>
Component: Tools / TestsAssignee: Arcady Goldmints-Orlov <crzwdjk>
Status: RESOLVED FIXED    
Severity: Normal CC: aboya, bugs-noreply, chavarria1991, clopez, crzwdjk, lmoura, mcatanzaro, sam, thorton, webkit-bug-importer, zan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[fast-cq] Patch none

Marcos Chavarría Teijeiro (irc: chavaone)
Reported 2015-02-17 05:23:24 PST
The fast/attachment/attachment-disabled-rendering.html and fast/attachment/attachment-rendering.html layout tests are failing since they were added on r180193 (https://trac.webkit.org/changeset/180193). The diffs are the following: * fast/attachment/attachment-disabled-rendering.html --- /home/ch01/wk-tools/layout-test-results/fast/attachment/attachment-disabled-rendering-expected.txt +++ /home/ch01/wk-tools/layout-test-results/fast/attachment/attachment-disabled-rendering-actual.txt @@ -3,9 +3,9 @@ layer at (0,0) size 800x600 RenderBlock {HTML} at (0,0) size 800x600 RenderBody {BODY} at (8,8) size 784x576 - RenderBlock {P} at (0,0) size 784x18 - RenderText {#text} at (0,0) size 766x18 - text run at (0,0) width 766: "This tests that attachments don't have a custom renderer when they are disabled. This test must be run in the test runner." - RenderBlock (anonymous) at (0,34) size 784x0 + RenderBlock {P} at (0,0) size 784x17 + RenderText {#text} at (0,0) size 750x17 + text run at (0,0) width 750: "This tests that attachments don't have a custom renderer when they are disabled. This test must be run in the test runner." + RenderBlock (anonymous) at (0,33) size 784x0 RenderInline {ATTACHMENT} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 * fast/attachment/attachment-rendering.html --- /home/ch01/wk-tools/layout-test-results/fast/attachment/attachment-rendering-expected.txt +++ /home/ch01/wk-tools/layout-test-results/fast/attachment/attachment-rendering-actual.txt @@ -2,10 +2,10 @@ 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 784x584 - RenderBlock {P} at (0,0) size 784x18 - RenderText {#text} at (0,0) size 326x18 - text run at (0,0) width 326: "This tests that attachments have a custom renderer." - RenderBlock (anonymous) at (0,34) size 784x200 - RenderAttachment {ATTACHMENT} at (0,0) size 200x200 + RenderBody {BODY} at (8,8) size 784x576 + RenderBlock {P} at (0,0) size 784x17 + RenderText {#text} at (0,0) size 318x17 + text run at (0,0) width 318: "This tests that attachments have a custom renderer." + RenderBlock (anonymous) at (0,33) size 784x0 + RenderInline {ATTACHMENT} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0
Attachments
[fast-cq] Patch (3.98 KB, patch)
2021-10-29 17:41 PDT, Arcady Goldmints-Orlov
no flags
Arcady Goldmints-Orlov
Comment 1 2021-09-06 11:00:20 PDT
For what it's worth, the tests all fail because the attachment element is not enabled on GTK.
Tim Horton
Comment 2 2021-09-06 14:25:03 PDT
FWIW I would expect Gtk to skip all of fast/attachment; it's not a web-exposed feature nor one that I imagine you need?
Arcady Goldmints-Orlov
Comment 3 2021-09-06 16:00:47 PDT
*** Bug 177534 has been marked as a duplicate of this bug. ***
Arcady Goldmints-Orlov
Comment 4 2021-09-06 16:01:12 PDT
*** Bug 142268 has been marked as a duplicate of this bug. ***
Arcady Goldmints-Orlov
Comment 5 2021-09-06 16:01:35 PDT
*** Bug 142269 has been marked as a duplicate of this bug. ***
Arcady Goldmints-Orlov
Comment 6 2021-09-06 16:01:53 PDT
*** Bug 191402 has been marked as a duplicate of this bug. ***
Arcady Goldmints-Orlov
Comment 7 2021-09-06 16:02:23 PDT
*** Bug 212199 has been marked as a duplicate of this bug. ***
Arcady Goldmints-Orlov
Comment 8 2021-09-06 16:03:42 PDT
*** Bug 194009 has been marked as a duplicate of this bug. ***
Michael Catanzaro
Comment 9 2021-09-07 06:34:37 PDT
(In reply to Tim Horton from comment #2) > FWIW I would expect Gtk to skip all of fast/attachment; it's not a > web-exposed feature nor one that I imagine you need? So... what is HTML attachment element? I'm curious that we have an HTML element that is not web-exposed? Is it something private for Mac applications only?
Tim Horton
Comment 10 2021-09-07 10:59:18 PDT
(In reply to Michael Catanzaro from comment #9) > (In reply to Tim Horton from comment #2) > > FWIW I would expect Gtk to skip all of fast/attachment; it's not a > > web-exposed feature nor one that I imagine you need? > > So... what is HTML attachment element? I'm curious that we have an HTML > element that is not web-exposed? > > Is it something private for Mac applications only? For apps (both iOS and macOS), yes; it represents a 'file' in the contenteditable area in Mail.
Michael Catanzaro
Comment 11 2021-09-07 14:00:51 PDT
It should probably be skipped in the global expectations then, and unskipped in Cocoa port expectations, so that every port doesn't have to skip it separately.
Tim Horton
Comment 12 2021-09-07 14:08:26 PDT
I agree! (and am surprised it's not already that way)
Sam Weinig
Comment 13 2021-09-07 17:16:29 PDT
(In reply to Tim Horton from comment #12) > I agree! (and am surprised it's not already that way) (I think we really should consider proposing <attachment> for actual web usage, perhaps under a different name, at some point. It seems like it could have its uses).
Tim Horton
Comment 14 2021-09-07 17:24:02 PDT
Likely! Could be useful for mail/notes/etc. web apps. I think it would need a significantly expanded JS interface, though; the way it shook out requires a lot of interaction to happen through the native API, sadly.
Sam Weinig
Comment 15 2021-09-07 18:17:54 PDT
Not shocked, just disappointed.
Arcady Goldmints-Orlov
Comment 16 2021-10-29 17:41:43 PDT
Created attachment 442887 [details] [fast-cq] Patch
Arcady Goldmints-Orlov
Comment 17 2021-10-29 17:43:17 PDT
For now I would like to just mark the tests as skipped on GLIB and close this bug. If and when the attachment element gets on track to standardization, we can open another bug for its implementation on glib platforms.
EWS
Comment 18 2021-10-29 17:49:01 PDT
Committed r285066 (243708@main): <https://commits.webkit.org/243708@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 442887 [details].
Radar WebKit Bug Importer
Comment 19 2021-10-29 17:50:21 PDT
Note You need to log in before you can comment on or make changes to this bug.