Closed
Bug 402181
Opened 17 years ago
Closed 17 years ago
Better error message for captureEvents(), releaseEvents() and routeEvent()
Categories
(Core :: DOM: Events, enhancement)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
People
(Reporter: perhans, Assigned: timeless)
Details
Attachments
(1 file, 1 obsolete file)
1.90 KB,
patch
|
smaug
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
This bug is an ofspring of bug #330494 and especially comment 34 (https://bugzilla.mozilla.org/show_bug.cgi?id=330494#c34) that reads:
Hello,
I wish we could reopen this bug and change the respective error messages
+UseOfCaptureEventsWarning=Use of captureEvents() is deprecated.
+UseOfReleaseEventsWarning=Use of releaseEvents() is deprecated.
+UseOfRouteEventWarning=Use of routeEvent() is deprecated.
to something like
UseOfCaptureEventsWarning=Use of captureEvents() is deprecated. To upgrade your
code, use the DOM 2 addEventListener() method. For more help
http://developer.mozilla.org/en/docs/DOM:element.addEventListener
UseOfReleaseEventsWarning=Use of releaseEvents() is deprecated. To upgrade your
code, use the DOM 2 removeEventListener() method. For more help
http://developer.mozilla.org/en/docs/DOM:element.removeEventListener
UseOfRouteEventWarning=Use of routeEvent() is deprecated. To upgrade your code,
use the DOM 2 dispatchEvent() method. For more help
http://developer.mozilla.org/en/docs/DOM:element.dispatchEvent
The spirit behind the new messages is to be as helpful as possible.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•17 years ago
|
||
Changing component to Core->DOM:Events
Component: Error Console → DOM: Events
OS: Windows 2000 → All
Product: Firefox → Core
QA Contact: error.console → events
Hardware: PC → All
Version: unspecified → Trunk
Comment 3•17 years ago
|
||
Voting for this bug :)
Attachment #312851 -
Flags: review? → review?(Olli.Pettay)
Comment 5•17 years ago
|
||
Timeless,
in your patch you give
(...) For more help http://developer.mozilla.org/en/docs/DOM:element.addEventListeners
but it should be rather/instead
(...) For more help http://developer.mozilla.org/en/docs/DOM:element.addEventListener
No trailing "s"
Attachment #312851 -
Attachment is obsolete: true
Attachment #312851 -
Flags: review?(Olli.Pettay)
Attachment #312859 -
Flags: review?(Olli.Pettay)
Comment 7•17 years ago
|
||
Comment on attachment 312859 [details] [diff] [review]
per reporter...
looks ok to me
Attachment #312859 -
Flags: review?(Olli.Pettay) → review+
Comment on attachment 312859 [details] [diff] [review]
per reporter...
note: it is ok for l10n to fail to catch this change, it's just an improvement to en-US. If they don't want to ship better messages, that's fine. If they have time, that's also nice.
Attachment #312859 -
Flags: approval1.9?
Comment 9•17 years ago
|
||
Comment on attachment 312859 [details] [diff] [review]
per reporter...
a1.9=beltzner
Attachment #312859 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 10•17 years ago
|
||
Comment on attachment 312859 [details] [diff] [review]
per reporter...
mozilla/dom/locales/en-US/chrome/dom/dom.properties 1.13
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 11•17 years ago
|
||
(In reply to comment #8)
> (From update of attachment 312859 [details] [diff] [review])
> note: it is ok for l10n to fail to catch this change, it's just an improvement
> to en-US. If they don't want to ship better messages, that's fine. If they have
> time, that's also nice.
At least post to .l10n about this, please, to give them more chances to catch this change.
Comment 12•17 years ago
|
||
What's going on here? I thought we're frozen.
Comment 13•17 years ago
|
||
This isn't adding strings or making semantic changes (as least in the sense that the error message means anything different). The string names weren't changed, so other locales will not break or fail. Don't know if I have a strong opinion either way on this at this point, other than to say that this shouldn't be any different from a typo fix from the perspective of the localizers.
Comment 14•17 years ago
|
||
There have been several localizers wondering what to do about this, and they really should worry about different things. We shouldn't be taking RFEs on strings anymore, even if they're just rewording an existing message.
Typos are different, because that makes 2 locales think, string improvements like this one are work for 60. Even if it's not required work, even ignoring it is too much of a hassle right now.
At least that's my take.
You need to log in
before you can comment on or make changes to this bug.
Description
•