Protect readystatechange event dispatch on XMLHttpRequest.
XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent may dispatch multiple events: a deferred progress event and the given ready state change. Multiple dispatching may lead to a use-after-free bug. This CL adds a protection for the event target. In addition to that, XMLHttpRequestProgressEventThrottle stops dispatching the latter event when dispatching the former event changes the readyState. BUG=505362 Review URL: https://codereview.chromium.org/1217803002 git-svn-id: svn://svn.chromium.org/blink/trunk@197983 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment