Bug 194515 - [WKTR] Unify setup for content extensions tests among ports
Summary: [WKTR] Unify setup for content extensions tests among ports
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords:
Depends on: 193622
Blocks:
  Show dependency treegraph
 
Reported: 2019-02-11 14:16 PST by Adrian Perez
Modified: 2019-02-12 14:23 PST (History)
8 users (show)

See Also:


Attachments
Patch (6.50 KB, patch)
2019-02-12 10:10 PST, Adrian Perez
mcatanzaro: review-
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-highsierra-wk2 (560.76 KB, application/zip)
2019-02-12 11:01 PST, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2019-02-11 14:16:51 PST
After bug #193622 the WPE and GTK ports both use the same code for
configuring content extensions in WKTR, using the C API. Ideally
the Cocoa port would use the same as well, and avoid needing to
have its own implementation.
Comment 1 Michael Catanzaro 2019-02-11 15:40:46 PST
This might even come for free, now that you fixed that one refcounting issue.
Comment 2 Adrian Perez 2019-02-12 10:00:46 PST
(In reply to Michael Catanzaro from comment #1)
> This might even come for free, now that you fixed that one refcounting issue.

It may help, yes :)
Comment 3 Adrian Perez 2019-02-12 10:10:34 PST
Created attachment 361804 [details]
Patch
Comment 4 Michael Catanzaro 2019-02-12 10:23:05 PST
Comment on attachment 361804 [details]
Patch

Wait for EWS before using cq+.
Comment 5 EWS Watchlist 2019-02-12 11:01:56 PST
Comment on attachment 361804 [details]
Patch

Attachment 361804 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/11123709

Number of test failures exceeded the failure limit.
Comment 6 EWS Watchlist 2019-02-12 11:01:58 PST
Created attachment 361807 [details]
Archive of layout-test-results from ews107 for mac-highsierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-highsierra-wk2  Platform: Mac OS X 10.13.6
Comment 7 Adrian Perez 2019-02-12 14:23:58 PST
My suspicion here is that the

  static WKWebViewConfiguration globalWebViewConfiguration;

inside “TestControllerCocoa.mm”, which contains a .userContentController
property is what it gets used as page configuration, instead of what the
generic TestController code configures -- which effectively results in
the content extension configured by ::configureContentExtensionForTest()
not being used at all because the WKPageConfigurationRef passed from
the generic TestController code to Cocoa's ::platformCreateWebView()
is just ignored.

Maybe the least path of resistance is setting the .userContentController
property for the global configuration (or, better: the one copied one
from it, when WK_API_ENABLED is set).