Bug 117522

Summary: Make sure we aren't throttling plugin timers during initialisation and destruction
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: New BugsAssignee: Oliver Hunt <oliver>
Status: RESOLVED FIXED    
Severity: Normal CC: abecsi, cdumez, cmarcelo, commit-queue, gtk-ews, gyuyoung.kim, menard, philn, rakuco, rego+ews, xan.lopez
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch darin: review+

Oliver Hunt
Reported 2013-06-11 14:56:34 PDT
Make sure we aren't throttling plugin timers during initialisation and destruction
Attachments
Patch (15.44 KB, patch)
2013-06-11 14:59 PDT, Oliver Hunt
no flags
Patch (14.43 KB, patch)
2013-06-11 18:01 PDT, Oliver Hunt
darin: review+
Oliver Hunt
Comment 1 2013-06-11 14:59:12 PDT
kov's GTK+ EWS bot
Comment 2 2013-06-11 16:03:23 PDT
Oliver Hunt
Comment 3 2013-06-11 17:01:24 PDT
Sam Weinig
Comment 4 2013-06-11 17:52:45 PDT
Comment on attachment 204362 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204362&action=review > Source/WebKit2/Shared/ActivityAssertion.cpp:28 > +#include "config.h" > + > +#include "ActivityAssertion.h" You should not have newline here. > Source/WebKit2/Shared/ActivityAssertion.h:36 > +class ChildProcess; > +class ActivityAssertion { You should have a newline here. > Source/WebKit2/Shared/ActivityAssertion.h:39 > + WTF_MAKE_NONCOPYABLE(ActivityAssertion); > + > +public: You should not have a newline here. > Source/WebKit2/Shared/ActivityAssertion.h:43 > + static PassOwnPtr<ActivityAssertion> create(ChildProcess* process) > + { > + return adoptPtr(new ActivityAssertion(process)); > + } If this is only ever used on the stack, is there any reason to make this use OwnPtr/PassOwnPtr? > Source/WebKit2/Shared/ActivityAssertion.h:50 > + ActivityAssertion(ChildProcess*); > + ChildProcess* m_process; > +}; You should have a newline here. > Source/WebKit2/Shared/ChildProcess.h:82 > + PassOwnPtr<ActivityAssertion> takeActivityAssertion() > + { > + return ActivityAssertion::create(this); > + } > + > + Extra newline.
Oliver Hunt
Comment 5 2013-06-11 18:01:23 PDT
Darin Adler
Comment 6 2013-06-11 18:03:22 PDT
Comment on attachment 204374 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204374&action=review > Source/WebKit2/Shared/ActivityAssertion.h:31 > +#include <wtf/OwnPtr.h> > +#include <wtf/PassOwnPtr.h> Don’t need these any more.
Sam Weinig
Comment 7 2013-06-11 18:04:19 PDT
Comment on attachment 204374 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204374&action=review > Source/WebKit2/PluginProcess/WebProcessConnection.cpp:232 > + // Ensure we don't clamp any timers during initialisation "initialisation" is spelled "initialization" in WebKit. > Source/WebKit2/Shared/ActivityAssertion.h:46 > +private: > + ChildProcess& m_process; > + > +}; Extra newline.
Oliver Hunt
Comment 8 2013-06-11 18:12:31 PDT
Note You need to log in before you can comment on or make changes to this bug.