| Summary: | [EFL] REGRESSION(r188828): All performance tests and almost all layout tests crash | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> | ||||||
| Component: | New Bugs | Assignee: | Gyuyoung Kim <gyuyoung.kim> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | andersca, calvaris, cgarcia, commit-queue, enrica, gyuyoung.kim, ossy, sam, thorton | ||||||
| Priority: | P2 | ||||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=148467 | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 143743 | ||||||||
| Attachments: |
|
||||||||
|
Description
Csaba Osztrogonác
2015-08-24 03:58:28 PDT
I think https://trac.webkit.org/changeset/188828 might be the culprit, because it touches PlatformWebView code path in this revision interval. Seems likely! I will look shortly. It looks like we don't have a view yet when TestController::initialize tries to set some prefs (via resetPreferencesToConsistentValues). This is OK on PLATFORM(COCOA) because we keep around a global WKWebViewConfiguration and use that when retrieving the WKPreferences. Maybe someone from EFL or GTK (who can actually test this) can do the same with the WKPageConfiguration? (In reply to comment #3) > It looks like we don't have a view yet when TestController::initialize tries > to set some prefs (via resetPreferencesToConsistentValues). > > This is OK on PLATFORM(COCOA) because we keep around a global > WKWebViewConfiguration and use that when retrieving the WKPreferences. Maybe > someone from EFL or GTK (who can actually test this) can do the same with > the WKPageConfiguration? I simply apply below fix in order to run layout test on EFL port. --- a/Tools/WebKitTestRunner/TestController.cpp +++ b/Tools/WebKitTestRunner/TestController.cpp @@ -568,7 +568,11 @@ void TestController::ensureViewSupportsOptionsForTest(const TestInvocation& test void TestController::resetPreferencesToConsistentValues() { // Reset preferences +#if PLATFORM(COCOA) WKPreferencesRef preferences = platformPreferences(); +#else + WKPreferencesRef preferences = WKPageGroupGetPreferences(m_pageGroup.get()); +#endif EFL layout test begins to run again with this fix. However I'm not sure if this is correct fix for EFL and GTK. Tim, what do you think ? *** Bug 148420 has been marked as a duplicate of this bug. *** Created attachment 259840 [details]
Patch
I hope to fix EFL layout test and performance test as soon as possible. Tim, Ossy , please take a look this patch. Comment on attachment 259840 [details]
Patch
Please implement platformPreferences() in TestControllerEfl.cpp instead of adding more #ifdefs.
Created attachment 259912 [details]
Patch
(In reply to comment #8) > Comment on attachment 259840 [details] > Patch > > Please implement platformPreferences() in TestControllerEfl.cpp instead of > adding more #ifdefs. It seems GTK layout test also has been broken since r188828. Fix it too. Comment on attachment 259912 [details] Patch Clearing flags on attachment: 259912 Committed r188948: <http://trac.webkit.org/changeset/188948> All reviewed patches have been landed. Closing bug. Comment on attachment 259912 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259912&action=review > Tools/WebKitTestRunner/TestController.cpp:1609 > +#if !PLATFORM(EFL) && !PLATFORM(GTK) && !PLATFORM(COCOA) > WKPreferencesRef TestController::platformPreferences() > { > WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageCopyPageConfiguration(m_mainWebView->page())); > return WKPageConfigurationGetPreferences(configuration.get()); > } > +#endif Aren't these lines unused? As far as I know there isn't this kind of platform. WK2 platforms are only Mac and iOS (Cocoa), EFL, GTK. Comment on attachment 259912 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259912&action=review >> Tools/WebKitTestRunner/TestController.cpp:1609 >> +#endif > > Aren't these lines unused? As far as I know there isn't this kind > of platform. WK2 platforms are only Mac and iOS (Cocoa), EFL, GTK. If so, this is unused code. I didn't know it. I'm sorry. (In reply to comment #14) > Comment on attachment 259912 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=259912&action=review > > >> Tools/WebKitTestRunner/TestController.cpp:1609 > >> +#endif > > > > Aren't these lines unused? As far as I know there isn't this kind > > of platform. WK2 platforms are only Mac and iOS (Cocoa), EFL, GTK. > > If so, this is unused code. I didn't know it. I'm sorry. No problem, let me remove them in bug148467 *** Bug 148421 has been marked as a duplicate of this bug. *** |