Closed
Bug 272705
Opened 20 years ago
Closed 20 years ago
Error ``document.getElementById("cmd_SwitchTextDirection") has no properties'' [xs] in file ``chrome://communicator/content/utilityOverlay.js'', line 387, character 0.
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
Details
Attachments
(1 file)
984 bytes,
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Error ``document.getElementById("cmd_SwitchTextDirection") has no properties'' [xs] in file ``chrome://communicator/content/utilityOverlay.js'', line 387, character 0. Stopped for error handler. #0: function goUpdateGlobalEditMenuItems() in <chrome://communicator/content/utilityOverlay.js> line 387 385: try { 386: // XXX: implement controller for cmd_SwitchTextDirection 387: document.getElementById('cmd_SwitchTextDirection').setAttribute('disabled', 388: !document.commandDispatcher.focusedElement); 389: } This happens in various windows including venkman, it's amazingly annoying.
Comment 2•20 years ago
|
||
err, my bad :-/
Comment 3•20 years ago
|
||
Isn't that why the code is in a try/catch block?
Comment 4•20 years ago
|
||
bz: if you set Venkman to break or trace on exception (as opposed to break or trace on error) then you'll see exceptions before they get caught. The hack could consider removing the try/catch block too. The correct fix is for Mano to write the cmd_SwitchTextDirection controller :-)
Comment 5•20 years ago
|
||
The break-on-exception mode is already painful enough, since so much of the XPCOM traffic _does_ throw exceptions for normal things (security checks, anyone?)
Attachment #167612 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #167612 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 6•20 years ago
|
||
timeless, i guess you want to remove the try block if you're landing this one.
Comment 8•20 years ago
|
||
Comment on attachment 167612 [details] [diff] [review] look before we leap r+sr=me if you remind Mano to fix it properly ;-) If focusedElement fails we're in real trouble :-P
Attachment #167612 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #167612 -
Flags: superreview+
Attachment #167612 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #167612 -
Flags: review+
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in
before you can comment on or make changes to this bug.
Description
•