Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index f17f982e43a096992f3ded4877e188a4fc469c6e..eae5d1bc566c626b22b89f020788ffd7fa6062a8 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -2520,8 +2520,11 @@ bool RenderViewImpl::IsEditableNode(const WebNode& node) const { |
if (node.isElementNode()) { |
const WebElement& element = node.toConst<WebElement>(); |
- if (element.isTextFormControlElement()) |
- return true; |
+ if (element.isTextFormControlElement()) { |
+ if (!(element.hasAttribute("readonly") || |
+ element.hasAttribute("disabled"))) |
+ return true; |
+ } |
// Also return true if it has an ARIA role of 'textbox'. |
for (unsigned i = 0; i < element.attributeCount(); ++i) { |