Bug 162017 - [GTK] Ping attribute tests have been timeout since r204720
Summary: [GTK] Ping attribute tests have been timeout since r204720
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 177941 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-15 09:05 PDT by Javier Fernandez
Modified: 2020-06-22 00:51 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.25 KB, patch)
2020-06-19 02:53 PDT, Carlos Garcia Campos
aperez: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Fernandez 2016-09-15 09:05:35 PDT
Need to investigate why below tests are timeout.

  http/tests/navigation/ping-attribute/anchor-cookie.html [ Timeout ]
  http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html [ Timeout ]
  http/tests/navigation/ping-attribute/anchor-cross-origin.html [ Timeout ]
  http/tests/navigation/ping-attribute/anchor-same-origin.html [ Timeout ]
  http/tests/navigation/ping-attribute/area-cookie.html [ Timeout ]
  http/tests/navigation/ping-attribute/area-cross-origin-from-https.html [ Timeout ]
  http/tests/navigation/ping-attribute/area-cross-origin.html [ Timeout ]
  http/tests/navigation/ping-attribute/area-same-origin.html [ Timeout ]
Comment 1 Miguel Gomez 2016-10-21 07:32:56 PDT
http/tests/navigation/ping-attribute/anchor-ping-and-follow-redirect-when-sending-ping.html

is timing out as well. Updating expectations.
Comment 2 Alicia Boya García 2017-11-08 13:49:56 PST
Started crashing at some point since r224584-224585.
Comment 3 Alicia Boya García 2018-06-20 08:15:10 PDT
Failing since r232991:r232999
Comment 4 Alicia Boya García 2018-06-20 08:16:12 PDT
(In reply to Alicia Boya García from comment #3)
> Failing since r232991:r232999

That only applies to http/tests/navigation/ping-attribute/area-cross-origin-from-https.html
Comment 5 Miguel Gomez 2019-08-08 06:40:02 PDT
These tests are now crashing as reported in bug 200534. Adding the crash expectation besides the existent one so we can go back to this when the crash is fixed.

http/tests/navigation/ping-attribute/anchor-cookie.html [ Crash ]
http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html [ Crash ]
http/tests/navigation/ping-attribute/anchor-cross-origin.html [ Crash ]
http/tests/navigation/ping-attribute/area-cookie.html [ Crash ]
http/tests/navigation/ping-attribute/area-cross-origin.html [ Crash ]
http/tests/navigation/ping-attribute/area-same-origin.html [ Crash ]
http/tests/navigation/ping-attribute/anchor-ping-and-follow-redirect-when-sending-ping.html [ Crash ]
http/tests/navigation/ping-attribute/area-cross-origin-from-https.html [ Crash ]
Comment 6 Diego Pino 2020-06-18 06:04:21 PDT
I think the reason why these tests are crashing is because there's no implementation of singleTapAtPoint in GTK's WKTR.

https://webkit-search.igalia.com/webkit/source/Tools/TestRunnerShared/UIScriptContext/UIScriptController.h#150

Crash-log:

Thread 1 (Thread 0x7fe3e19e9e80 (LWP 227)):
#0  0x00007fe3e80a97ee in WTFCrash () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#1  0x000055899ec0a679 in  ()
#2  0x000055899ec46f30 in WTR::JSUIScriptController::singleTapAtPoint(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) ()
#3  0x00007fe3e7136eca in long JSC::APICallbackFunction::call<JSC::JSCallbackFunction>(JSC::JSGlobalObject*, JSC::CallFrame*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#4  0x00007fe303fff027 in  ()
#5  0x00007fff913b2fd0 in  ()
#6  0x00007fe3e70b396d in llint_op_call () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#7  0x0000000000000000 in  ()

STDERR:
STDERR: warning: core file may not match specified executable file.
STDERR: 1   0x7fe3e80a97e9 WTFCrash
STDERR: 2   0x55899ec0a679 /app/webkit/WebKitBuild/Release/bin/WebKitTestRunner(+0x17679) [0x55899ec0a679]
STDERR: 3   0x55899ec46f30 /app/webkit/WebKitBuild/Release/bin/WebKitTestRunner(+0x53f30) [0x55899ec46f30]
STDERR: 4   0x7fe3e7136eca long JSC::APICallbackFunction::call<JSC::JSCallbackFunction>(JSC::JSGlobalObject*, JSC::CallFrame*)
STDERR: 5   0x7fe303fff027 [0x7fe303fff027]

Marking tests as skip until there's an implementation of singleTapAtPoint for GTK WKTR.
Comment 7 Carlos Garcia Campos 2020-06-18 06:19:55 PDT
That's weird because singleTapAtPoint is only implemented (and I think expected to be used) by iOS.
Comment 8 Carlos Garcia Campos 2020-06-18 06:22:40 PDT
    let supportsTouchEvents = "TouchEvent" in window;
    if (supportsTouchEvents && window.testRunner && testRunner.runUIScript)
        testRunner.runUIScript("(function() { uiController.singleTapAtPoint(" + x + ", " + y + ", function() { /* Do nothing */ }); })();", function() { /* Do nothing */ });
    else if (window.eventSender) {

I guess that's the problem, they way it's detecting if touch is supported.
Comment 9 Carlos Garcia Campos 2020-06-18 06:33:43 PDT
I think checking ontouchstart instead of TouchEvent would work because ontouchstart is only added when untimeEnabledFeatures::sharedFeatures().touchEventsEnabled() is true.
Comment 10 Carlos Garcia Campos 2020-06-19 02:38:54 PDT
*** Bug 177941 has been marked as a duplicate of this bug. ***
Comment 11 Carlos Garcia Campos 2020-06-19 02:53:48 PDT
Created attachment 402271 [details]
Patch
Comment 12 Carlos Garcia Campos 2020-06-22 00:51:07 PDT
Committed r263343: <https://trac.webkit.org/changeset/263343>