Changeset 188948 in webkit


Ignore:
Timestamp:
Aug 26, 2015 12:03:24 AM (9 years ago)
Author:
Gyuyoung Kim
Message:

[EFL][GTK] REGRESSION(r188828): All performance tests and almost all layout tests crash
https://bugs.webkit.org/show_bug.cgi?id=148377

Reviewed by Carlos Garcia Campos.

EFL and GTK don't support TestController::platformPreferences() yet which was introduced by r188828.
It caused all crashes of layout test and performance test on EFL and GTK. So this patch implements
TestController::platformPreferences() using WKPageGroupGetPreferences() which was previous thing for
EFL and GTK at the moment.

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::platformWillRunTest):

  • WebKitTestRunner/efl/TestControllerEfl.cpp:

(WTR::TestController::platformPreferences):

  • WebKitTestRunner/gtk/TestControllerGtk.cpp:

(WTR::TestController::platformPreferences):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r188947 r188948  
     12015-08-26  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
     2
     3        [EFL][GTK] REGRESSION(r188828): All performance tests and almost all layout tests crash
     4        https://bugs.webkit.org/show_bug.cgi?id=148377
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        EFL and GTK don't support TestController::platformPreferences() yet which was introduced by r188828.
     9        It caused all crashes of layout test and performance test on EFL and GTK. So this patch implements
     10        TestController::platformPreferences() using WKPageGroupGetPreferences() which was previous thing for
     11        EFL and GTK at the moment.
     12
     13        * WebKitTestRunner/TestController.cpp:
     14        (WTR::TestController::platformWillRunTest):
     15        * WebKitTestRunner/efl/TestControllerEfl.cpp:
     16        (WTR::TestController::platformPreferences):
     17        * WebKitTestRunner/gtk/TestControllerGtk.cpp:
     18        (WTR::TestController::platformPreferences):
     19
    1202015-08-25  Nan Wang  <n_wang@apple.com>
    221
  • trunk/Tools/WebKitTestRunner/TestController.cpp

    r188828 r188948  
    16011601}
    16021602
     1603#if !PLATFORM(EFL) && !PLATFORM(GTK) && !PLATFORM(COCOA)
     1604WKPreferencesRef TestController::platformPreferences()
     1605{
     1606    WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageCopyPageConfiguration(m_mainWebView->page()));
     1607    return WKPageConfigurationGetPreferences(configuration.get());
     1608}
     1609#endif
     1610
    16031611#if !PLATFORM(COCOA)
    16041612void TestController::platformWillRunTest(const TestInvocation&)
     
    16061614}
    16071615
    1608 WKPreferencesRef TestController::platformPreferences()
    1609 {
    1610     WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageCopyPageConfiguration(m_mainWebView->page()));
    1611     return WKPageConfigurationGetPreferences(configuration.get());
    1612 }
    1613 
    16141616void TestController::platformCreateWebView(WKPageConfigurationRef configuration, const ViewOptions& options)
    16151617{
  • trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp

    r188828 r188948  
    5959        m_forceNoTimeout = true;
    6060    }
     61}
     62
     63WKPreferencesRef TestController::platformPreferences()
     64{
     65    return WKPageGroupGetPreferences(m_pageGroup.get());
    6166}
    6267
  • trunk/Tools/WebKitTestRunner/gtk/TestControllerGtk.cpp

    r188828 r188948  
    4747void TestController::platformInitialize()
    4848{
     49}
     50
     51WKPreferencesRef TestController::platformPreferences()
     52{
     53    return WKPageGroupGetPreferences(m_pageGroup.get());
    4954}
    5055
Note: See TracChangeset for help on using the changeset viewer.