Closed
Bug 1175399
Opened 9 years ago
Closed 9 years ago
Combine readonly attribute consideration into isFocusableElement()
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: timdream, Assigned: timdream)
Details
Attachments
(1 file, 2 obsolete files)
4.80 KB,
patch
|
janjongboom
:
review+
smaug
:
feedback+
|
Details | Diff | Splinter Review |
Comment left on bug 729623 is no longer valid and the if block should be put into isFocusableElement().
Assignee | ||
Comment 1•9 years ago
|
||
I've also added a test to ensure we don't receive any notification for readonly inputs.
Attachment #8623507 -
Flags: review?(janjongboom)
Attachment #8623507 -
Flags: feedback?(bugs)
Assignee | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment on attachment 8623507 [details] [diff] [review]
Patch v1.0
Why you want to use getAttribute() and not .readOnly.
Attachment #8623507 -
Flags: feedback?(bugs)
Comment 4•9 years ago
|
||
Maybe it's handled differently in Chrome code, but <input readonly> would give a falsey value when reading the attribute through getAttribute. So is this code really working?
Flags: needinfo?(timdream)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8623507 [details] [diff] [review]
Patch v1.0
This probably means fix to bug 729623 was invalid? Not sure. Let me change to .readOnly instead.
Also this means the test is false positive here. Gonna change both and submit a new patch.
Attachment #8623507 -
Attachment is obsolete: true
Flags: needinfo?(timdream)
Attachment #8623507 -
Flags: review?(janjongboom)
Assignee | ||
Comment 6•9 years ago
|
||
Patch updated to use element.readOnly and I have verified the test assert the context at the right timing.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=224c9d7810f8
Attachment #8628685 -
Flags: review?(janjongboom)
Attachment #8628685 -
Flags: feedback?(bugs)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8628685 [details] [diff] [review]
Patch v1.1
Test didn't pass :-/ it did pass locally...
Attachment #8628685 -
Attachment is obsolete: true
Attachment #8628685 -
Flags: review?(janjongboom)
Attachment #8628685 -
Flags: feedback?(bugs)
Assignee | ||
Comment 8•9 years ago
|
||
Made a silly mistake on the previous patch.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e3031903f49b
Attachment #8629272 -
Flags: review?(janjongboom)
Attachment #8629272 -
Flags: feedback?(bugs)
Comment 9•9 years ago
|
||
Comment on attachment 8629272 [details] [diff] [review]
Patch v1.2
r=janjongboom
Attachment #8629272 -
Flags: review?(janjongboom) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Attachment #8629272 -
Flags: feedback?(bugs) → feedback+
Comment 10•9 years ago
|
||
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•