Bug 190176 - REGRESSION: TestWebKitAPI.WKWebView.ProvisionalURLNotChange API test is failing
Summary: REGRESSION: TestWebKitAPI.WKWebView.ProvisionalURLNotChange API test is failing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-10-01 16:46 PDT by Dawei Fenton (:realdawei)
Modified: 2018-10-02 14:16 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.58 KB, patch)
2018-10-02 12:02 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dawei Fenton (:realdawei) 2018-10-01 16:46:20 PDT
API test TestWebKitAPI.WKWebView.ProvisionalURLNotChange is failing on Mojave (Release and Debug)

sample output:
https://build.webkit.org/builders/Apple%20Mojave%20Release%20WK2%20(Tests)/builds/59/steps/run-api-tests/logs/stdio
   
TestWebKitAPI.WKWebView.ProvisionalURLNotChange
        _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
        
        /Volumes/Data/slave/mojave-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProvisionalURLNotChange.mm:59
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: "http://www.webkit.org!/"
          "data:text/html,start"
        
It has been failing since Mojave queues were added to build.webkit.org
Comment 1 Radar WebKit Bug Importer 2018-10-01 16:48:32 PDT
<rdar://problem/44925871>
Comment 2 Chris Dumez 2018-10-02 10:54:48 PDT
This test was introduced in http://trac.webkit.org/r184151. It seems we have regressed it and [webView URL].absoluteString.UTF8String can now return an invalid URL.

It could also be that we recognize "http://www.webkit.org!/" as a valid URL now.
Comment 3 Chris Dumez 2018-10-02 11:52:23 PDT
It does not reproduce locally for me or Alex.
Comment 4 Chris Dumez 2018-10-02 11:57:46 PDT
"http://www.webkit.org!" is valid URL according to WebKit's URL parser.
Comment 5 Chris Dumez 2018-10-02 12:02:34 PDT
Created attachment 351426 [details]
Patch
Comment 6 Alex Christensen 2018-10-02 12:34:24 PDT
Comment on attachment 351426 [details]
Patch

This is a speculative fix. r=me
Comment 7 WebKit Commit Bot 2018-10-02 13:44:37 PDT
Comment on attachment 351426 [details]
Patch

Clearing flags on attachment: 351426

Committed r236764: <https://trac.webkit.org/changeset/236764>
Comment 8 WebKit Commit Bot 2018-10-02 13:44:39 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Chris Dumez 2018-10-02 14:16:13 PDT
(In reply to Alex Christensen from comment #6)
> Comment on attachment 351426 [details]
> Patch
> 
> This is a speculative fix. r=me

David confirmed that this speculative fix made the test pass on the bot.