Closed
Bug 318208
Opened 19 years ago
Closed 19 years ago
textbox.readonly isn't properly implemented
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8.1beta2
People
(Reporter: timeless, Assigned: enndeakin)
References
()
Details
(Keywords: fixed-seamonkey1.1a, fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
neil
:
review+
neil
:
superreview+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
the getter doesn't always return true/false, often it returns undefined this understandably makes domi fairly upset.
Error ``aValue has no properties'' [xs] in file ``chrome://inspector/content/viewers/jsObject/jsObject.js'', line 213, character 0.
Stopped for error handler.
#0: function anonymous(aTreeChildren=XULElement:{0}, aName=string:"readonly", aValue=void:void, aObject=XULElement:{45}) in <chrome://inspector/content/viewers/jsObject/jsObject.js> line 213
211: } else {
212: try {
213: value = aValue.toString();
214: value = value.replace(/\n|\r|\t|\v/g, " ");
215: } catch (ex) {
0001: aValue
$[0] = [void] void
0001: aObject.readonly
$[1] = [void] void
0001: aObject.inputField.readonly
$[2] = [void] void
0001: aObject.inputField.getAttribute('readonly')
$[3] = [null] null
0001: aObject.readonly
$[4] = [void] void
0001: aObject.readonly=true
$[5] = [boolean] true
0001: aObject.readonly
$[6] = [boolean] true
0001: aObject.readonly=false
$[7] = [boolean] false
0001: aObject.readonly
$[8] = [boolean] false
0001: aObject.inputField.getAttribute('readonly')
$[9] = [null] null
0001: aObject.inputField.readonly
$[10] = [boolean] false
0001: delete aObject.inputField.readonly
$[11] = [boolean] true
0001: aObject.inputField.readonly
$[12] = [void] void
0001: aObject.inputField
$[13] = [HTMLInputElement] [class: HTMLInputElement] {1}
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #204533 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #204533 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 2•19 years ago
|
||
Comment on attachment 204533 [details] [diff] [review]
simplify code
Prevailing style seems somewhat inconsistent, but definitely does not use getAttribute for properties available (when spelled correctly) on the input.
Attachment #204533 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #204533 -
Flags: superreview-
Attachment #204533 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #204533 -
Flags: review-
Assignee | ||
Comment 3•19 years ago
|
||
Assignee: timeless → enndeakin
Attachment #204533 -
Attachment is obsolete: true
Attachment #215613 -
Flags: superreview?(neil)
Attachment #215613 -
Flags: review?(neil)
Updated•19 years ago
|
Attachment #215613 -
Flags: superreview?(neil)
Attachment #215613 -
Flags: superreview+
Attachment #215613 -
Flags: review?(neil)
Attachment #215613 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 4•19 years ago
|
||
Comment on attachment 215613 [details] [diff] [review]
Use right case for readOnly property
This has been on the trunk for nearly 4 months - it's a simple correctness fix that should land on the 1.8 branch. It blocks bug 343687.
Attachment #215613 -
Flags: approval1.8.1?
Updated•19 years ago
|
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.8.1beta2
Version: Trunk → 1.8 Branch
Updated•19 years ago
|
Attachment #215613 -
Flags: approval1.8.1? → approval1.8.1+
Updated•19 years ago
|
Whiteboard: [checkin needed (1.8 branch)]
Comment 5•19 years ago
|
||
mozilla/xpfe/global/resources/content/bindings/textbox.xml 1.32.4.5
mozilla/toolkit/content/widgets/textbox.xml 1.21.4.10
Keywords: fixed-seamonkey1.1a,
fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
Comment 6•18 years ago
|
||
Wasn't this the kind of API change that should not go on a frozen-API-stable branch such as 1.8?
/be
Comment 7•18 years ago
|
||
Unclear... We made no promises about the XUL "api", somehow -- that's why we're revving the extension minVersion.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•