[Webkit-unassigned] [Bug 34014] New: WebSocket wrapper can be collected even if events are pending
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 22 12:21:06 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34014
Summary: WebSocket wrapper can be collected even if events are
pending
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ap at webkit.org
CC: ukai at chromium.org
Created an attachment (id=47218)
--> (https://bugs.webkit.org/attachment.cgi?id=47218)
test case
WebSocket inherits from ActiveDOMObject, but it never sets pending activity. As
a result, it can be garbage collected even if has a network exchange ongoing,
and is going to post events. This violates a basic JS principle - garbage
collection should not affect program execution.
A fix for this would be to call setPendingActivity when WebSocket waits for
data from the network (and match it with unsetPendingActivity).
--
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