[Webkit-unassigned] [Bug 40627] Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 31 14:04:36 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40627





--- Comment #50 from Joseph Pecoraro <joepeck at webkit.org>  2010-07-31 14:04:35 PST ---
> Are you sure the object was a WebDatabaseSecurityOrigin?  What does "po <variable>"
> say in gdb?  Were the signatures for the overridden methods identical?  Unlike C++,
> Objective-C should still call the subclass' methods even if it was cast to a super class
> pointer.

I'll have to check what "po" prints. I had concerns, so my diagnosis consisted of setting a
breakpoint on WebDatabaseSecurityOrigin's setQuota and WebSecurityOrigin's setQuota.
I expected the latter's to never be called... however it was called from DumpRenderTree's
UIDelegate exceededDatabaseQuotaForOrigin.

The code path would have been approximately along the lines of:

> WebDatabaseSecurityOrigin *webOrigin = [[WebDatabaseSecurityOrigin alloc] _initWithWebCoreSecurityOrigin:frame->document()->securityOrigin()];
> CallUIDelegate(m_webView, @selector(webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:), kit(frame), webOrigin, (NSString *)databaseName);
> [webOrigin release];

I'll investigate this.


> I know this is a dumb question, but are you sure the #if ENABLE(DATABASE) macro
> was defined when compiling this file?  Were you able to step into the C++ code in
> those methods in gdb?

My breakpoint for WebDatabaseSecurityOrigin was hit and did go into the
DatabaseTracker code as expected in other cases.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list