Closed
Bug 34526
Opened 24 years ago
Closed 24 years ago
Replace EdMessage.xul usage with AlertWithTitle method
Categories
(Core :: DOM: Editor, defect, P1)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: ek96fksg, Assigned: cmanske)
References
Details
(Whiteboard: Composer feature work)
Attachments
(1 file)
985 bytes,
patch
|
Details | Diff | Splinter Review |
Two Netscape titled alerts are shown when attempting to do something forbidden in the Named Anchor dialog. 1. Launch Editor 2. Click on the 'Anchor' icon 3. Click OK -->"You must enter a name for this dialog" comes up, and the title is Netscape and should not be so in Mozilla. ...or... 3. Name it "X" and click OK 4. Relaunch the dialog by clicking the 'Anchor' icon 5. Name it "X" and click OK -->"X already exists in this page. Please enter a different name" comes up, and the title is Netscape and should not be so in Mozilla.
Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
assigning to Kathy and setting to M16
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → M16
Comment 4•24 years ago
|
||
The real problem is that EdMessage.xul has hardcoded the string "Netscape"
Status: NEW → ASSIGNED
OS: Windows 98 → All
Hardware: PC → All
Assignee | ||
Comment 5•24 years ago
|
||
I'll take this. EdMessage.xul is going away, there's a new editor shell method to use the common "Alert" dialog: editorShell.AlertWithTitle(title, message) that we should use for simple message purposes. I plan to do all the required replacements when I rewrite all the dialogs. The title should be neither "Netscape" nor "Mozilla", but something that indicates the context of the message. Kathy: Be sure to use "ValidateNumberString()" for range validation in the image dialog (an any others that you happen to be working on.) This uses the new alert dialog.
Assignee: brade → cmanske
Status: ASSIGNED → NEW
Reporter | ||
Comment 6•24 years ago
|
||
Good, and the title of these messages needs to be localizable. /Fredrik
Assignee | ||
Comment 7•24 years ago
|
||
Of course. Any string you use should be retrieved from the editor.properties string bundle file like this: editorShell.AlertWithTitle(GetString("titleID"),GetString("msgID")); (you can use editorShell.GetString, but there's a JS helper in EdDialogCommon.js to make it easier.)
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Summary: Netscape titled alert messages → Replace EdMessage.xul usage with AlertWithTitle method
Assignee | ||
Comment 8•24 years ago
|
||
Part of skins rewrite. (Already fixed in my tree)
Depends on: 19565
Comment 9•24 years ago
|
||
updating keyword and status whiteboard to reflect that this is a beta 2 feature work bug that the Composer team deems a must fix for beta 2.
Assignee | ||
Comment 10•24 years ago
|
||
For a simple messagebox, we should use AlertWithTitle() method instead of the EdMessage.xul dialog. Verification is that all simple "messagebox" dialogs should look the same and have the "information" icon on the left. The title should not be "Netscape" or "Mozilla", but a title specific to the context of the message.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•