Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp

Issue 1878943003: Remove RawPtr from bindings/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
index 33a880305a29228bd9815f967b750a055617b822..714eea4a27bf8406acad305147474afcf62db39e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
@@ -86,10 +86,6 @@ void V8AbstractEventListener::handleEvent(ExecutionContext* executionContext, Ev
void V8AbstractEventListener::handleEvent(ScriptState* scriptState, Event* event)
{
- // The callback function on XMLHttpRequest can clear the event listener and destroys 'this' object. Keep a local reference to it.
- // See issue 889829.
- RawPtr<V8AbstractEventListener> protect(this);
-
ScriptState::Scope scope(scriptState);
// Get the V8 wrapper for the event object.

Powered by Google App Engine
This is Rietveld 408576698