Bug 45732 - [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
Summary: [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 20:56 PDT by Eric Carlson
Modified: 2012-10-24 06:27 PDT (History)
8 users (show)

See Also:


Attachments
patch (1.44 KB, patch)
2010-09-13 21:06 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2010-09-13 20:56:32 PDT
http://trac.webkit.org/changeset/67432 added a parameter to suspendActiveDOMObjects so classes  that derive from ActiveDOMObject can tell why suspend() is being called. See https://bugs.webkit.org/show_bug.cgi?id=45688.

I broke DumpRenderTreeSupportQt with this change, but don't know enough about how it works to fix it correctly, so based on the comments in http://trac.webkit.org/changeset/52914 I am hard coding it to pass ActiveDOMObject::JavaScriptPaused for now.
Comment 1 Eric Carlson 2010-09-13 21:06:26 PDT
Created attachment 67517 [details]
patch
Comment 2 Daniel Bates 2010-09-13 21:08:19 PDT
Comment on attachment 67517 [details]
patch

LGTM.
r=me
Comment 3 Daniel Bates 2010-09-13 21:09:28 PDT
(In reply to comment #2)
> (From update of attachment 67517 [details])
> LGTM.
> r=me

I am assuming WebCore/dom/ActiveDOMObject.h gets included by someone...
Comment 4 Eric Carlson 2010-09-13 21:18:29 PDT
Temporary fix landed in http://trac.webkit.org/changeset/67440
Comment 5 Daniel Bates 2010-09-13 21:22:43 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > (From update of attachment 67517 [details] [details])
> > LGTM.
> > r=me
> 
> I am assuming WebCore/dom/ActiveDOMObject.h gets included by someone...

So, it will get included by WorkerThread.h, which includes WorkerRunLoop.h  which includes ScriptExecutionContext.h, which includes ActiveDOMObject.h

I was a bit to quick when reviewing this. The enum value JavaScriptPaused was renamed to JavaScriptDebuggerPaused. I missed that in the review. My mistake.

I will be more cautious.
Comment 6 Daniel Bates 2010-09-13 21:32:19 PDT
Committed enum value fix up in changeset 67442 <http://trac.webkit.org/changeset/67442>.
Comment 7 Eric Seidel (no email) 2010-10-13 12:27:28 PDT
Attachment 67517 [details] was posted by a committer and has review+, assigning to Eric Carlson for commit.
Comment 8 Eric Carlson 2010-10-13 12:34:22 PDT
I committed https://bugs.webkit.org/attachment.cgi?id=67517, and dbates fixed it in http://trac.webkit.org/changeset/67442 when my change didn't actually compile :-(

This bug is about getting a real fix into DumpRenderTreeSupportQt::suspendActiveDOMObjects instead of the hack I added which hard codes the reason for suspension.
Comment 9 Pierre Rossi 2012-10-24 06:27:30 PDT
This actually looks like dead code by now.