Closed Bug 279100 Opened 20 years ago Closed 19 years ago

JS error pressing ESC in Help window

Categories

(SeaMonkey :: Help Documentation, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED
seamonkey1.0alpha

People

(Reporter: neil, Assigned: asaf)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

This is a regression from bug 68348. Because the ESC key was moved from
navigatorOverlay.xul to platformNavigationBindings.xul which Help uses for the
back/forward keys, it now tries to call an undefined functionBrowserStop().
Assignee: neil.parkwaycc.co.uk → bugs.mano
Target Milestone: --- → mozilla1.8beta
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #174521 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #174521 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 174521 [details] [diff] [review]
patch v1

>     <command id="Browser:Home"    oncommand="BrowserHome(event);"/>
>     <command id="Browser:Back"    oncommand="BrowserBack();"    observes="canGoBack"/>
>     <command id="Browser:Forward" oncommand="BrowserForward();" observes="canGoForward"/>
>+    <command id="Browser:Stop" oncommand="BrowserStop();"/>
Make these line up please...


>-    <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
>+    <key id="key_stop" keycode="VK_ESCAPE" oncommand="Browser:Stop"/>
I think you forgot to change this one to command=

The problem with this patch is that someone might be tempted to hook the Stop
button and menuitems into this command. However disabling the command will
disable the key too, although hitting Escape on a loaded page serves to cancel
all timeouts. For comparison FireFox hooks the Stop button and menuitems into
the command, but not the Escape key.
Attachment #174521 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #174521 - Flags: review?(neil.parkwaycc.co.uk)
Attached patch another approachSplinter Review
Attachment #174521 - Attachment is obsolete: true
Attachment #174561 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #174561 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 174561 [details] [diff] [review]
another approach

The id of key_stop_mac is confusing, as its actual value is the normal stop key
on the other platforms! Maybe call it key_stop2?
Attachment #174561 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #174561 - Flags: superreview+
Attachment #174561 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #174561 - Flags: review+
(with the change to key_stop2)

Checking in xpfe/browser/resources/content/mac/platformNavigationBindings.xul;
/cvsroot/mozilla/xpfe/browser/resources/content/mac/platformNavigationBindings.xul,v
 <--  platformNavigationBindings.xul
new revision: 1.15; previous revision: 1.14
done
Checking in extensions/help/resources/content/help.xul;
/cvsroot/mozilla/extensions/help/resources/content/help.xul,v  <--  help.xul
new revision: 1.57; previous revision: 1.56
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.8beta1 → mozilla1.8beta2
Target Milestone: mozilla1.8beta2 → ---
Status: RESOLVED → VERIFIED
Target Milestone: --- → Seamonkey1.0alpha
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: