diff --git a/mozilla/content/events/src/nsEventStateManager.cpp b/mozilla/content/events/src/nsEventStateManager.cpp index 8af711dfb78..8d4bdaca2d4 100644 --- a/mozilla/content/events/src/nsEventStateManager.cpp +++ b/mozilla/content/events/src/nsEventStateManager.cpp @@ -2304,7 +2304,7 @@ nsEventStateManager::SendFocusBlur(nsIPresContext* aPresContext, nsIContent *aCo event.eventStructType = NS_EVENT; event.message = NS_BLUR_CONTENT; - EnsureDocument(shell); + EnsureDocument(presShell); // Make sure we're not switching command dispatchers, if so, surpress the blurred one if(gLastFocusedDocument && mDocument) { diff --git a/mozilla/layout/events/src/nsEventStateManager.cpp b/mozilla/layout/events/src/nsEventStateManager.cpp index 8af711dfb78..8d4bdaca2d4 100644 --- a/mozilla/layout/events/src/nsEventStateManager.cpp +++ b/mozilla/layout/events/src/nsEventStateManager.cpp @@ -2304,7 +2304,7 @@ nsEventStateManager::SendFocusBlur(nsIPresContext* aPresContext, nsIContent *aCo event.eventStructType = NS_EVENT; event.message = NS_BLUR_CONTENT; - EnsureDocument(shell); + EnsureDocument(presShell); // Make sure we're not switching command dispatchers, if so, surpress the blurred one if(gLastFocusedDocument && mDocument) {