Bug 53975 - Events should propagate through IDBDatabase (for IDBRequest and IDBTransaction)
Summary: Events should propagate through IDBDatabase (for IDBRequest and IDBTransaction)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Jeremy Orlow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 21:21 PST by Jeremy Orlow
Modified: 2011-02-08 19:18 PST (History)
7 users (show)

See Also:


Attachments
Patch (39.10 KB, patch)
2011-02-07 21:24 PST, Jeremy Orlow
no flags Details | Formatted Diff | Diff
Patch (39.30 KB, patch)
2011-02-08 15:47 PST, Jeremy Orlow
japhet: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Orlow 2011-02-07 21:21:35 PST
Events should propagate through IDBDatabase (for IDBRequest and IDBTransaction)
Comment 1 Jeremy Orlow 2011-02-07 21:24:06 PST
Created attachment 81580 [details]
Patch
Comment 2 Jeremy Orlow 2011-02-07 21:24:37 PST
please review
Comment 3 WebKit Review Bot 2011-02-07 21:57:11 PST
Attachment 81580 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7740009
Comment 4 WebKit Review Bot 2011-02-08 00:46:19 PST
Attachment 81580 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7828007
Comment 5 Jeremy Orlow 2011-02-08 15:47:58 PST
Created attachment 81708 [details]
Patch
Comment 6 Nate Chapin 2011-02-08 16:05:16 PST
Comment on attachment 81708 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=81708&action=review

> Source/WebCore/storage/IDBDatabase.cpp:143
> +ScriptExecutionContext* IDBDatabase::scriptExecutionContext() const
> +{
> +    return ActiveDOMObject::scriptExecutionContext();
> +}

Is there a reason we're overriding this if we're just calling straight to ActiveDOMObject?

> Source/WebCore/storage/IDBRequest.cpp:150
> +        // If there ever are events that are associated with a database but not have a

Grammar nit: "but not have" -> "but do not have"

> Source/WebCore/storage/IDBTransaction.cpp:116
> +ScriptExecutionContext* IDBTransaction::scriptExecutionContext() const
> +{
> +    return ActiveDOMObject::scriptExecutionContext();
> +}
> +

Same as above: is there a reason for this?  Am I missing something obvious?
Comment 7 Jeremy Orlow 2011-02-08 17:01:57 PST
(In reply to comment #6)
> (From update of attachment 81708 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=81708&action=review
> 
> > Source/WebCore/storage/IDBDatabase.cpp:143
> > +ScriptExecutionContext* IDBDatabase::scriptExecutionContext() const
> > +{
> > +    return ActiveDOMObject::scriptExecutionContext();
> > +}
> 
> Is there a reason we're overriding this if we're just calling straight to ActiveDOMObject?

In eventTarget.h:
virtual ScriptExecutionContext* scriptExecutionContext() const = 0;
Comment 8 Jeremy Orlow 2011-02-08 18:14:29 PST
Committed r78005: <http://trac.webkit.org/changeset/78005>
Comment 9 Zhenyao Mo 2011-02-08 19:18:46 PST
storage/indexeddb/request-event-propagation.html
storage/indexeddb/transaction-event-propagation.html

are failing on chromium+webkit bots.