summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 05:28:43 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 05:28:43 +0000
commitff2f1b7e01191a951fb95c4f2325c072cd2fda3c (patch)
tree22a153f72b4135ad07c6e7b63c767e2fb4374794 /webkit/glue/webview_impl.cc
parent3e6eb1f63beb477b1152f69e4949554b14427742 (diff)
downloadchromium_src-ff2f1b7e01191a951fb95c4f2325c072cd2fda3c.zip
chromium_src-ff2f1b7e01191a951fb95c4f2325c072cd2fda3c.tar.gz
chromium_src-ff2f1b7e01191a951fb95c4f2325c072cd2fda3c.tar.bz2
A workaround fix for Issue 9186.
This crash is caused in a unnecessary check whether or not to add a "text direction" submenu to a context menu. Since we don't have a "text direction" submenu and this check is unnecessary now, this change set a page setting that disables this check. BUG=9186 Review URL: http://codereview.chromium.org/42690 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13072 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index a79c63c..9d4fc2c 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -1429,6 +1429,12 @@ void WebViewImpl::SetPreferences(const WebPreferences& preferences) {
// universal access.
settings->setAllowUniversalAccessFromFileURLs(false);
+ // We prevent WebKit from checking if it needs to add a "text direction"
+ // submenu to a context menu. it is not only because we don't need the result
+ // but also because it cause a possible crash in Editor::hasBidiSelection().
+ settings->setTextDirectionSubmenuInclusionBehavior(
+ TextDirectionSubmenuNeverIncluded);
+
#if defined(OS_WIN)
// RenderTheme is a singleton that needs to know the default font size to
// draw some form controls. We let it know each time the size changes.