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

Description Marcos Chavarría Teijeiro (irc: chavaone) 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
Comment 1 Arcady Goldmints-Orlov 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.
Comment 2 Tim Horton 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?
Comment 3 Arcady Goldmints-Orlov 2021-09-06 16:00:47 PDT
*** Bug 177534 has been marked as a duplicate of this bug. ***
Comment 4 Arcady Goldmints-Orlov 2021-09-06 16:01:12 PDT
*** Bug 142268 has been marked as a duplicate of this bug. ***
Comment 5 Arcady Goldmints-Orlov 2021-09-06 16:01:35 PDT
*** Bug 142269 has been marked as a duplicate of this bug. ***
Comment 6 Arcady Goldmints-Orlov 2021-09-06 16:01:53 PDT
*** Bug 191402 has been marked as a duplicate of this bug. ***
Comment 7 Arcady Goldmints-Orlov 2021-09-06 16:02:23 PDT
*** Bug 212199 has been marked as a duplicate of this bug. ***
Comment 8 Arcady Goldmints-Orlov 2021-09-06 16:03:42 PDT
*** Bug 194009 has been marked as a duplicate of this bug. ***
Comment 9 Michael Catanzaro 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?
Comment 10 Tim Horton 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.
Comment 11 Michael Catanzaro 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.
Comment 12 Tim Horton 2021-09-07 14:08:26 PDT
I agree! (and am surprised it's not already that way)
Comment 13 Sam Weinig 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).
Comment 14 Tim Horton 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.
Comment 15 Sam Weinig 2021-09-07 18:17:54 PDT
Not shocked, just disappointed.
Comment 16 Arcady Goldmints-Orlov 2021-10-29 17:41:43 PDT
Created attachment 442887 [details]
[fast-cq] Patch
Comment 17 Arcady Goldmints-Orlov 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.
Comment 18 EWS 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].
Comment 19 Radar WebKit Bug Importer 2021-10-29 17:50:21 PDT
<rdar://problem/84829919>