WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28854
Text Fields and Text Areas are reported as read-only by inspect32.exe
https://bugs.webkit.org/show_bug.cgi?id=28854
Summary
Text Fields and Text Areas are reported as read-only by inspect32.exe
Brian Weinstein
Reported
2009-08-31 13:31:47 PDT
Text Fields and Text Areas are reported as read-only by inspect32.exe. The text fields and areas that are read/write should be read/write to inspect32.exe and other tools that look at the accessibility of a node.
Attachments
Fix
(1.73 KB, patch)
2009-08-31 14:10 PDT
,
Brian Weinstein
no flags
Details
Formatted Diff
Diff
Fix + Removed Testing Code
(1.54 KB, patch)
2009-08-31 14:12 PDT
,
Brian Weinstein
darin
: review-
Details
Formatted Diff
Diff
Fix + Test Case
(4.85 KB, patch)
2009-08-31 16:16 PDT
,
Brian Weinstein
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Brian Weinstein
Comment 1
2009-08-31 14:10:27 PDT
Created
attachment 38832
[details]
Fix
Brian Weinstein
Comment 2
2009-08-31 14:12:26 PDT
Created
attachment 38833
[details]
Fix + Removed Testing Code
Adam Roben (:aroben)
Comment 3
2009-08-31 14:22:36 PDT
Comment on
attachment 38833
[details]
Fix + Removed Testing Code Can you make a regression test for this?
Brian Weinstein
Comment 4
2009-08-31 14:25:48 PDT
I was having trouble with the accessibility tests on Windows, I can give it a shot though.
Darin Adler
Comment 5
2009-08-31 15:35:44 PDT
Comment on
attachment 38833
[details]
Fix + Removed Testing Code
> + if (m_renderer->isTextField()) { > + HTMLInputElement* input = static_cast<HTMLInputElement*>(m_renderer->node()); > + return input->readOnly(); > + } else if (m_renderer->isTextArea()) { > + HTMLTextAreaElement* textArea = static_cast<HTMLTextAreaElement*>(m_renderer->node()); > + return textArea->readOnly(); > + }
We normally don't do else after if. I think the code would read fine without a local variable. if (m_renderer->isTextField()) return static_cast<HTMLInputElement*>(m_renderer->node())->readOnly() Can this be tested with a regression test? I think there are accessibility-driven regression tests. If so, please add a test. review- because of the lack of a test. If it's not possible to test this, then feel free to put up for review again.
Brian Weinstein
Comment 6
2009-08-31 16:16:01 PDT
Created
attachment 38842
[details]
Fix + Test Case
Brian Weinstein
Comment 7
2009-08-31 16:46:35 PDT
Committed in
http://trac.webkit.org/changeset/47915
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug