Allow user agent events within SVGImage destructor
See the bug for repro information. It is possible to attempt to send the "ready" event from within an EventDispatchForbiddenScope, while unloading an invalid SVG image. This happens when the SVGImage destructor tries to notify its frame that it will be detached. With this CL, we again allow events to be dispatched under the assumption that this is a separate Page (where script is disabled), and thus any events dispatched from these calls will neither reach the Element/Document/Page which added the restriction nor any script in the "sub-Page" itself. Bug: 1029262 Change-Id: Ibc72f58b102742530fb5ccf1ee47e58b16503a10 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949228 Commit-Queue: Mason Freed <masonfreed@chromium.org> Reviewed-by:Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Reviewed-by:
Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#722540}
Showing
Please register or sign in to comment