Closed Bug 790727 Opened 12 years ago Closed 12 years ago

XMLHttpRequest::DispatchPrematureAbortEvent doesn't root type before calling Event::Create

Categories

(Core :: DOM: Workers, defect)

x86_64
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: timeless, Unassigned)

References

()

Details

(Keywords: csectype-oom)

1601 XMLHttpRequest::DispatchPrematureAbortEvent(JSObject* aTarget,
1617   JSString* type = JS_NewStringCopyZ(cx, sEventStrings[aEventType]);
not rooted
1625     event = events::CreateGenericEvent(cx, type, false, false, false);

992 namespace events {
1008 CreateGenericEvent(JSContext* aCx, JSString* aType, bool aBubbles,
1009                    bool aCancelable, bool aMainRuntime)
1012   return Event::Create(aCx, global, aType, aBubbles, aCancelable, aMainRuntime);

33 class Event : public PrivatizableBase
90   Create(JSContext* aCx, JSObject* aParent, JSString* aType, bool aBubbles,
95     JSObject* obj = JS_NewObject(aCx, clasp, NULL, aParent);
GC
99       InitEventCommon(obj, priv, aType, aBubbles, aCancelable, true);
Root somewhere here - way too late
Over to workers!
Component: DOM: Core & HTML → DOM: Workers
This will be handled by the stack scanner.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Group: core-security
You need to log in before you can comment on or make changes to this bug.