Reviewed by Anders.
Add database quota UIDelegates methods to DRT UIDelegate.
* DumpRenderTree/mac/UIDelegate.mm:
(-[UIDelegate webView:quotaForSecurityOrigin:toCreateDatabase:withEstimatedSize:]):
(-[UIDelegate webView:quotaForSecurityOrigin:fromProposedQuota:database:]):
LayoutTests:
Reviewed by Anders.
Revert r28213 which added an error callback that was not needed and changed
the results.
* storage/transaction_callback_exception_crash.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28218
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-29 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Anders.
+
+ Revert r28213 which added an error callback that was not needed and changed
+ the results.
+
+ * storage/transaction_callback_exception_crash.html:
+
2007-11-29 Alice Liu <alice.liu@apple.com>
Reviewed by Adam.
<html>
<head>
<script>
-
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
var db = openDatabase("15976Test", "1.0", "Test for http://bugs.webkit.org/show_bug.cgi?id=15976", 1);
db.transaction(function(tx) {
- if (window.layoutTestController)
- setTimeout("layoutTestController.notifyDone()", 0);
- throw "TransactionCallbackError";
-}, function(err) {
- if (window.layoutTestController)
- setTimout("layoutTestController.notifyDone()", 0);
- document.body.innerText = "Transaction error occured";
+ if (window.layoutTestController)
+ window.setTimeout(function() { layoutTestController.notifyDone() }, 0);
+ throw "TransactionCallbackError";
});
-
</script>
</head>
<body>
+2007-11-29 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Anders.
+
+ Add database quota UIDelegates methods to DRT UIDelegate.
+
+ * DumpRenderTree/mac/UIDelegate.mm:
+ (-[UIDelegate webView:quotaForSecurityOrigin:toCreateDatabase:withEstimatedSize:]):
+ (-[UIDelegate webView:quotaForSecurityOrigin:fromProposedQuota:database:]):
+
2007-11-29 Kevin McCullough <kmccullough@apple.com>
Reviewed by Sam.
#import <WebKit/WebFramePrivate.h>
#import <WebKit/WebHTMLViewPrivate.h>
#import <WebKit/WebView.h>
+#import <WebKit/WebSecurityOriginPrivate.h>
#import <wtf/Assertions.h>
DumpRenderTreeDraggingInfo *draggingInfo = nil;
[window close];
}
+- (unsigned long long)webView:(WebView *)sender quotaForSecurityOrigin:(WebSecurityOrigin *)origin toCreateDatabase:(NSString *)newDatabaseName withEstimatedSize:(unsigned long long)estimatedSize
+{
+ return estimatedSize;
+}
+
+- (unsigned long long)webView:(WebView *)sender quotaForSecurityOrigin:(WebSecurityOrigin *)origin fromProposedQuota:(unsigned long long)proposedNewQuota database:(NSString *)databaseIdentifier
+{
+ return proposedNewQuota;
+}
+
+
- (void)dealloc
{
[draggingInfo release];