diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 87427bc9d10..70c1d7c6216 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -8110,6 +8110,9 @@ nsDocShell::SetHasFocus(PRBool aHasFocus) NS_IMETHODIMP nsDocShell::SetCanvasHasFocus(PRBool aCanvasHasFocus) { + if (mEditorData && mEditorData->GetEditable()) + return NS_ERROR_NOT_AVAILABLE; + nsCOMPtr presShell; GetPresShell(getter_AddRefs(presShell)); if (!presShell) return NS_ERROR_FAILURE;