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

Unified Diff: Source/core/dom/Document.cpp

Issue 14329005: UpdateWidget() can fire beforeload event synchronously blowing away RenderArena and its associated … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Incorporate Eric's comments Created 7 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index e3ff783900ca656fd499106a88c7daf2f48be5c4..8ed7aa969e6d90e08185242a540ef6d32d090dd5 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -2359,7 +2359,7 @@ void Document::implicitClose()
m_processingLoadEvent = false;
- if (f && renderObject && AXObjectCache::accessibilityEnabled()) {
+ if (f && renderObject && AXObjectCache::accessibilityEnabled() && axObjectCache()) {
eseidel 2013/04/23 20:37:51 axObjectCache() isn't redundant with accessibility
inferno 2013/04/23 20:43:42 It is not redundant with accessibilityEnabled. See
dmazzoni 2013/04/23 20:54:07 Nope, this creates an AXObjectCache. If you don't
dmazzoni 2013/04/23 21:08:41 OK, so this is what you want. As discussed offlin
// The AX cache may have been cleared at this point, but we need to make sure it contains an
// AX object to send the notification to. getOrCreate will make sure that an valid AX object
// exists in the cache (we ignore the return value because we don't need it here). This is
« no previous file with comments | « LayoutTests/fast/dom/beforeload/resources/object-beforeload-crash.html ('k') | Source/core/page/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698