Bug 141699 - [GTK] Layout Tests for experimental <attachment> element are failing since added
Summary: [GTK] Layout Tests for experimental <attachment> element are failing since added
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Arcady Goldmints-Orlov
URL:
Keywords: InRadar
: 142268 142269 177534 191402 194009 212199 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-17 05:23 PST by Marcos Chavarría Teijeiro (irc: chavaone)
Modified: 2021-10-29 17:50 PDT (History)
11 users (show)

See Also:


Attachments
[fast-cq] Patch (3.98 KB, patch)
2021-10-29 17:41 PDT, Arcady Goldmints-Orlov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>