Changeset 76574 in webkit


Ignore:
Timestamp:
Jan 24, 2011 10:15:01 PM (13 years ago)
Author:
mjs@apple.com
Message:

2011-01-24 Maciej Stachowiak <mjs@apple.com>

Reviewed by Dan Bernstein.

Implement database quota callback to fix storage tests on WebKit2 bot
https://bugs.webkit.org/show_bug.cgi?id=53064

  • WebKitTestRunner/TestController.cpp: (WTR::exceededDatabaseQuota): (WTR::TestController::createOtherPage): (WTR::TestController::initialize):
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r76559 r76574  
     12011-01-24  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Implement database quota callback to fix storage tests on WebKit2 bot
     6        https://bugs.webkit.org/show_bug.cgi?id=53064
     7
     8        * WebKitTestRunner/TestController.cpp:
     9        (WTR::exceededDatabaseQuota):
     10        (WTR::TestController::createOtherPage):
     11        (WTR::TestController::initialize):
     12
    1132011-01-24  Maciej Stachowiak  <mjs@apple.com>
    214
  • trunk/Tools/WebKitTestRunner/TestController.cpp

    r76559 r76574  
    3030#include "TestInvocation.h"
    3131#include <cstdio>
     32#include <WebKit2/WKContextPrivate.h>
    3233#include <WebKit2/WKPageGroup.h>
    33 #include <WebKit2/WKContextPrivate.h>
    3434#include <WebKit2/WKPreferencesPrivate.h>
    3535#include <WebKit2/WKRetainPtr.h>
     
    104104    return true;
    105105}
     106
     107static unsigned long long exceededDatabaseQuota(WKPageRef, WKFrameRef, WKSecurityOriginRef, WKStringRef, WKStringRef, unsigned long long, unsigned long long, unsigned long long, const void*)
     108{
     109    static const unsigned long long defaultQuota = 5 * 1024 * 1024;   
     110    return defaultQuota;
     111}
     112
    106113
    107114void TestController::runModal(WKPageRef page, const void* clientInfo)
     
    150157        0, // didDraw
    151158        0, // pageDidScroll
    152         0, // exceededDatabaseQuota
     159        exceededDatabaseQuota,
    153160        0, // runOpenPanel
    154161        0, // decidePolicyForGeolocationPermissionRequest
     
    282289        0, // didDraw
    283290        0, // pageDidScroll
    284         0, // exceededDatabaseQuota
     291        exceededDatabaseQuota,
    285292        0, // runOpenPanel
    286293        0, // decidePolicyForGeolocationPermissionRequest
Note: See TracChangeset for help on using the changeset viewer.