<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[82649] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/82649">82649</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2011-03-31 18:01:58 -0700 (Thu, 31 Mar 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>2011-03-31  Chang Shu  <cshu@webkit.org>

        Reviewed by Darin Adler.

        WebKitTestRunner needs layoutTestController.clearAllDatabases
        https://bugs.webkit.org/show_bug.cgi?id=42540

        Remove passed tests.

        * platform/mac-wk2/Skipped:
2011-03-31  Chang Shu  <cshu@webkit.org>

        Reviewed by Darin Adler.

        WebKitTestRunner needs layoutTestController.clearAllDatabases
        https://bugs.webkit.org/show_bug.cgi?id=42540

        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
        (WKBundleClearAllDatabases):
        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::clearAllDatabases):
        * WebProcess/InjectedBundle/InjectedBundle.h:
        * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2011-03-31  Chang Shu  <cshu@webkit.org>

        Reviewed by Darin Adler.

        WebKitTestRunner needs layoutTestController.clearAllDatabases
        https://bugs.webkit.org/show_bug.cgi?id=42540

        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
        * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
        (WTR::InjectedBundle::beginTesting):
        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
        (WTR::LayoutTestController::clearAllDatabases):
        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2Skipped">trunk/LayoutTests/platform/mac-wk2/Skipped</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePrivateh">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundleh">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebDatabaseManagerh">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleBindingsLayoutTestControlleridl">trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleInjectedBundlecpp">trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleLayoutTestControllercpp">trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleLayoutTestControllerh">trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/LayoutTests/ChangeLog 2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2011-03-31  Chang Shu  <cshu@webkit.org>
+
+        Reviewed by Darin Adler.
+
+        WebKitTestRunner needs layoutTestController.clearAllDatabases
+        https://bugs.webkit.org/show_bug.cgi?id=42540
+
+        Remove passed tests.
+
+        * platform/mac-wk2/Skipped:
+
</ins><span class="cx"> 2011-03-31  Adam Barth  <abarth@webkit.org>
</span><span class="cx"> 
</span><span class="cx">         Note another flaky test.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2Skipped"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/Skipped (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/Skipped       2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/LayoutTests/platform/mac-wk2/Skipped  2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -1201,26 +1201,13 @@
</span><span class="cx"> fast/frames/flattening/iframe-flattening-offscreen.html
</span><span class="cx"> fast/frames/flattening/iframe-flattening-simple.html
</span><span class="cx"> 
</span><del>-# WebKitTestRunner needs layoutTestController.clearAllDatabases
-# <https://bugs.webkit.org/show_bug.cgi?id=42540>
-storage/change-version.html
-storage/executesql-accepts-only-one-statement.html
-storage/hash-change-with-xhr.html
-storage/null-callbacks.html
</del><ins>+# WebKitTestRunner needs layoutTestController.setDatabaseQuota
+# <https://bugs.webkit.org/show_bug.cgi?id=57568>
</ins><span class="cx"> storage/open-database-creation-callback.html
</span><del>-storage/open-database-over-quota.html
-storage/open-database-set-empty-version.html
</del><ins>+
+# WebKitTestRunner needs layoutTestController.dumpDatabaseCallbacks
+# <https://bugs.webkit.org/show_bug.cgi?id=57570>
</ins><span class="cx"> storage/quota-tracking.html
</span><del>-storage/sql-error-codes.html
-storage/statement-error-callback.html
-storage/success-callback.html
-storage/transaction-error-callback.html
-storage/open-database-creation-callback-isolated-world.html
-storage/statement-error-callback-isolated-world.html
-storage/statement-success-callback-isolated-world.html
-storage/transaction-callback-isolated-world.html
-storage/transaction-error-callback-isolated-world.html
-storage/transaction-success-callback-isolated-world.html
</del><span class="cx"> 
</span><span class="cx"> # WebKitTestRunner needs layoutTestController.pathToLocalResource
</span><span class="cx"> # <https://bugs.webkit.org/show_bug.cgi?id=42541>
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog   2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Source/WebKit2/ChangeLog      2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2011-03-31  Chang Shu  <cshu@webkit.org>
+
+        Reviewed by Darin Adler.
+
+        WebKitTestRunner needs layoutTestController.clearAllDatabases
+        https://bugs.webkit.org/show_bug.cgi?id=42540
+
+        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
+        (WKBundleClearAllDatabases):
+        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        (WebKit::InjectedBundle::clearAllDatabases):
+        * WebProcess/InjectedBundle/InjectedBundle.h:
+        * WebProcess/WebCoreSupport/WebDatabaseManager.h:
+
</ins><span class="cx"> 2011-03-31  Anders Carlsson  <andersca@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Sam Weinig.
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp        2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp   2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -137,3 +137,8 @@
</span><span class="cx"> {
</span><span class="cx">     InjectedBundle::reportException(context, exception);
</span><span class="cx"> }
</span><ins>+
+void WKBundleClearAllDatabases(WKBundleRef bundleRef)
+{
+    toImpl(bundleRef)->clearAllDatabases();
+}
</ins></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h   2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h      2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -66,6 +66,7 @@
</span><span class="cx"> // Will make WebProcess ignore this preference until a preferences change notification, only for WebKitTestRunner use.
</span><span class="cx"> WK_EXPORT void WKBundleOverrideXSSAuditorEnabledForTestRunner(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
</span><span class="cx"> WK_EXPORT void WKBundleOverrideAllowUniversalAccessFromFileURLsForTestRunner(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
</span><ins>+WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle);
</ins><span class="cx"> 
</span><span class="cx"> #ifdef __cplusplus
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp   2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -35,6 +35,7 @@
</span><span class="cx"> #include "WKBundleAPICast.h"
</span><span class="cx"> #include "WebContextMessageKinds.h"
</span><span class="cx"> #include "WebCoreArgumentCoders.h"
</span><ins>+#include "WebDatabaseManager.h"
</ins><span class="cx"> #include "WebPage.h"
</span><span class="cx"> #include "WebPreferencesStore.h"
</span><span class="cx"> #include "WebProcess.h"
</span><span class="lines">@@ -119,6 +120,11 @@
</span><span class="cx">         (*iter)->settings()->setAllowUniversalAccessFromFileURLs(enabled);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void InjectedBundle::clearAllDatabases()
+{
+    WebDatabaseManager::shared().deleteAllDatabases();
+}
+
</ins><span class="cx"> static PassOwnPtr<Vector<String> > toStringVector(ImmutableArray* patterns)
</span><span class="cx"> {
</span><span class="cx">     if (!patterns)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h  2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h     2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -101,6 +101,9 @@
</span><span class="cx">     void removeUserStyleSheets(WebPageGroupProxy*, InjectedBundleScriptWorld*);
</span><span class="cx">     void removeAllUserContent(WebPageGroupProxy*);
</span><span class="cx"> 
</span><ins>+    // Local storage API
+    void clearAllDatabases();
+
</ins><span class="cx">     // Garbage collection API
</span><span class="cx">     void garbageCollectJavaScriptObjects();
</span><span class="cx">     void garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging(bool waitUntilDone);
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebDatabaseManagerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h      2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h 2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -47,6 +47,9 @@
</span><span class="cx"> 
</span><span class="cx">     void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
</span><span class="cx"> 
</span><ins>+public:
+    void deleteAllDatabases() const;
+
</ins><span class="cx"> private:
</span><span class="cx">     WebDatabaseManager();
</span><span class="cx">     virtual ~WebDatabaseManager();
</span><span class="lines">@@ -58,7 +61,6 @@
</span><span class="cx">     void getDatabaseOrigins(uint64_t callbackID) const;
</span><span class="cx">     void deleteDatabaseWithNameForOrigin(const String& databaseIdentifier, const String& originIdentifier) const;
</span><span class="cx">     void deleteDatabasesForOrigin(const String& originIdentifier) const;
</span><del>-    void deleteAllDatabases() const;
</del><span class="cx">     void setQuotaForOrigin(const String& originIdentifier, unsigned long long quota) const;
</span><span class="cx"> 
</span><span class="cx">     // WebCore::DatabaseTrackerClient
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog    2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Tools/ChangeLog       2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -2,6 +2,20 @@
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Darin Adler.
</span><span class="cx"> 
</span><ins>+        WebKitTestRunner needs layoutTestController.clearAllDatabases
+        https://bugs.webkit.org/show_bug.cgi?id=42540
+
+        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
+        * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
+        (WTR::InjectedBundle::beginTesting):
+        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
+        (WTR::LayoutTestController::clearAllDatabases):
+        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
+
+2011-03-31  Chang Shu  <cshu@webkit.org>
+
+        Reviewed by Darin Adler.
+
</ins><span class="cx">         WebKitTestRunner needs layoutTestController.setAllowUniversalAccessFromFileURLs
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=42692
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleBindingsLayoutTestControlleridl"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl    2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl       2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -71,7 +71,10 @@
</span><span class="cx">         // UserContent testing.
</span><span class="cx">         void addUserScript(in DOMString source, in boolean runAtStart, in boolean allFrames);
</span><span class="cx">         void addUserStyleSheet(in DOMString source, in boolean allFrames);
</span><del>-        
</del><ins>+
+        // Local storage API
+        void clearAllDatabases();
+
</ins><span class="cx">         // Compositing testing.
</span><span class="cx">         DOMString layerTreeAsText();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleInjectedBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp   2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp      2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -172,6 +172,8 @@
</span><span class="cx">     WKBundleRemoveAllUserContent(m_bundle, m_pageGroup);
</span><span class="cx"> 
</span><span class="cx">     page()->reset();
</span><ins>+
+    WKBundleClearAllDatabases(m_bundle);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InjectedBundle::done()
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleLayoutTestControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp     2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp        2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -286,6 +286,11 @@
</span><span class="cx">     return WKBundlePageFindString(InjectedBundle::shared().page()->page(), toWK(target).get(), options);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void LayoutTestController::clearAllDatabases()
+{
+    WKBundleClearAllDatabases(InjectedBundle::shared().bundle());
+}
+
</ins><span class="cx"> bool LayoutTestController::isCommandEnabled(JSStringRef name)
</span><span class="cx"> {
</span><span class="cx">     return WKBundlePageIsEditingCommandEnabled(InjectedBundle::shared().page()->page(), toWK(name).get());
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleLayoutTestControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h (82648 => 82649)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h       2011-04-01 00:50:41 UTC (rev 82648)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h  2011-04-01 01:01:58 UTC (rev 82649)
</span><span class="lines">@@ -106,6 +106,9 @@
</span><span class="cx">     // Text search testing.
</span><span class="cx">     bool findString(JSStringRef, JSValueRef optionsArray);
</span><span class="cx"> 
</span><ins>+    // Local storage
+    void clearAllDatabases();
+
</ins><span class="cx">     enum WhatToDump { RenderTree, MainFrameText, AllFramesText };
</span><span class="cx">     WhatToDump whatToDump() const { return m_whatToDump; }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>