Closed
Bug 450733
Opened 17 years ago
Closed 17 years ago
Deprecate the timed textbox binding
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: dao, Assigned: dao)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
1.49 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
The next step for 1.9.2 I think should be to assign the search binding to type="timed", with a similar warning, since it's fairly backwards compatible. Eventually we should be able to drop support for type="timed". Bug 449045 tracks this.
Attachment #333912 -
Flags: review?(enndeakin)
Comment 1•17 years ago
|
||
Comment on attachment 333912 [details] [diff] [review]
patch
Looks OK, but what incompatibilities exist that would prevent us from using the search binding for this now?
Perhaps the 'command on input' aspect?
Attachment #333912 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 2•17 years ago
|
||
(In reply to comment #1)
> (From update of attachment 333912 [details] [diff] [review])
> Looks OK, but what incompatibilities exist that would prevent us from using the
> search binding for this now?
I can't think of direct incompatibilities. But even if we use the search binding for type="timed", I'd prefer to still keep the timed binding for now (with the warning) as there could be custom bindings that extend it, like we did in the Places organizer.
Comment 3•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 4•17 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: mozilla1.9.1 → mozilla1.9.1b1
Assignee | ||
Updated•17 years ago
|
Keywords: dev-doc-complete
Comment 5•17 years ago
|
||
Great, deprecating something without giving extension developers a better choice - type="search" isn't supported in Firefox 3.0, and extensions will still have to take Firefox 3.0 into account for a while. Also, there is no good way to test for type="search" support AFAIK. So the best solution for extension developers is removing type="timed" and reimplementing the functionality with a regular textbox. Was that the intention?
Assignee | ||
Comment 6•17 years ago
|
||
It's still there, it's just deprecated.
Comment 7•17 years ago
|
||
Yep, and I'll get bugs filed because of the warning...
Comment 8•17 years ago
|
||
I'm curious: how many things-which-aren't-Firefox using it would cause a reconsideration of deprecating it?
Assignee | ||
Comment 9•17 years ago
|
||
(In reply to comment #8)
> I'm curious: how many things-which-aren't-Firefox using it would cause a
> reconsideration of deprecating it?
You don't want a fixed number, right? So far this seems to be a hypothetical question, as I know of only one such use (bug 449045 comment 1). Comment 5 doesn't seem to be such a case, as it refers to type="search" being unsupported in Firefox 3 rather than being the wrong solution per se. That's why we didn't drop type="timed" just yet.
Comment 10•17 years ago
|
||
The number of users isn't directly relevant to whether it should be deprecated - presumably those users will get the same benefit we do from switching (simpler code that is better maintained, looks like?).
Of course, switching has a cost, too, and I can understand that this type of forced-deprecation might be annoying, but given the fact that this is a warning, not an error, it hardly seems so onerous that it outweighs the value of notifying developers of the better alternative. Do you disagree?
Comment 11•17 years ago
|
||
I would expect a deprecation warning to be added after the alternative has been available for at least one release - unless the point of the warning is to be ignored.
Comment 12•17 years ago
|
||
Sure, that's a problem for extensions that care to be compatible. I don't mind if developers of such extensions ignore the warning until the new functionality is more widely deployed - do you really think that's too much trouble?
Comment 13•17 years ago
|
||
If you look at bug 454010, there are already three duplicates filed - and that's only about nightly builds. I had bugs filed about getBoxObjectFor() being deprecated (the warning is only meant for web page authors but who cares), so I don't expect anything to be different for this warning.
Comment 14•17 years ago
|
||
PS: Yes, reimplementing type="timed" is easier than having code that works both with getBoxObjectFor() and getBoundingClientRect() depending on which one is available - so it should require less time than explaining people the difference between an error and a warning. Nevertheless, I don't like reimplementing functionality that is supposed to be there.
You need to log in
before you can comment on or make changes to this bug.
Description
•