RESOLVED FIXED Bug 116476
Active DOM object resumption should match reason for suspending
https://bugs.webkit.org/show_bug.cgi?id=116476
Summary Active DOM object resumption should match reason for suspending
Vicki Pfau
Reported 2013-05-20 16:46:48 PDT
We provide a reason as to why active DOM objects are suspended, but we don't check when resuming that the reason we're resuming matches the reason we suspended. This could potentially lead to cases in which we attempt to resume multiple times with the first one not matching the reason we suspended. This will lead to us potentially resuming early or resuming multiple times. We should only resume if the reason we're resuming matches the reason we suspended.
Attachments
Patch (9.06 KB, patch)
2013-05-20 17:33 PDT, Vicki Pfau
joepeck: review+
Vicki Pfau
Comment 1 2013-05-20 17:33:39 PDT
Joseph Pecoraro
Comment 2 2013-05-20 23:20:00 PDT
Comment on attachment 202334 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202334&action=review r=me > Source/WebCore/ChangeLog:12 > + No new tests, code path should not be hit currently. Nit: The code path is hit, there just isn't a change in behavior. > Source/WebCore/dom/ScriptExecutionContext.h:179 > + ActiveDOMObject::ReasonForSuspension reasonForSuspendingActiveDOMObjects() { return m_reasonForSuspendingActiveDOMObjects; } const
Vicki Pfau
Comment 3 2013-05-22 18:11:25 PDT
Note You need to log in before you can comment on or make changes to this bug.