DescriptionProtect XHR's wrapper while dispatching event.
In the current impl, XMLHttpRequest::hasPendingActivity returns false when
the associated loader is gone. On the ohter hand, event dispatching, which may
happen *after* the associated loader is gone, needs the wrapper. This CL extends
the protection for the wrapper via hasPendingActivity by introducing
m_eventDispatchRecursionLevel.
As we have suffered from insufficient protection for a long time, this CL
protects the wrapper conservatively.
This CL drops RefPtr-based protections because they are covered by
hasPendingActivity based protections.
BUG=458970
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190531
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Messages
Total messages: 12 (3 generated)
|