Closed Bug 197781 Opened 22 years ago Closed 20 years ago

<startup-new*.xul>: Convert <window class="dialog"> to <dialog>

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: Sebastian, Assigned: Sebastian)

References

Details

Attachments

(4 obsolete files)

In chatzilla there are two occurances of <window class="dialog"...

Converting them offers following advantages:
- there is <dialog> which is thought for dialogs (and still looks the same)
- It saves the inclusion of dialogOverlay.xul
- It saves the inclusion of the dialog <keyset> as it happens automatically
- Buttons will automatically be displayed according to chrome/OS preferences
- <OK><Cancel> buttons will not be reversed when using the "sidebar on the right
side customization" (http://mozilla.org/unix/customizing.html) as they are now

Patch coming up shortly
When patching the files I noticed that 
/extensions/irc/xul/content/prefpanel/startup-newScript.xul seems to be
completely unused?

If that is the case and it is not planned to use it, it should be totally
removed (see http://lxr.mozilla.org/seamonkey/search?string=startup-newScript)

Otherwise looking for r=/sr= and somebody to check this in.
Attachment #117457 - Flags: review?(rginda)
Comment on attachment 117457 [details] [diff] [review]
<startup-new[Script|URL].*> patch v1


In <startup-newScript.xul>,
remove <dialogOverlay.xul> too.

Then, you might want to ask niel@ for review...
Attachment #117457 - Attachment description: convert <window class="dialog"> to <dialog> → <startup-newScript> and <startup-newURL> patch
Attachment #117457 - Flags: review?(rginda) → review-
Summary: Convert chatzilla to use <dialog> instead of <window class="dialog"> → ChatZilla: Convert <window class="dialog"> to <dialog>
Summary: ChatZilla: Convert <window class="dialog"> to <dialog> → <startup-new*.xul>: Convert <window class="dialog"> to <dialog>
Sorry, I meant neil@.
Attachment #117457 - Attachment description: <startup-newScript> and <startup-newURL> patch → <startup-new[Script|URL].*> patch v1
Patch v1, plus comment 2 suggestions.
Attachment #117457 - Attachment is obsolete: true
Comment on attachment 136422 [details] [diff] [review]
<startup-new[Script|URL].*> patch v2


Can you review, test, check it in ?

(I'm not using ChatZilla.)
Attachment #136422 - Flags: review?(neil.parkwaycc.co.uk)
I wasn't able to test this dialog properly, even without the patch.
I found one bug, which was the misuse of mRadioChildren.
So, this patch has those changes merged in.
Attachment #136422 - Attachment is obsolete: true
Comment on attachment 136570 [details] [diff] [review]
Fixed radiobutton issues
[Check in: See comment 15]

rginda, you'll want to fix your abuse of mRadioChildren in case bz gets his fix
for bug 226549 in.
Attachment #136570 - Flags: review?(rginda)
Comment on attachment 136570 [details] [diff] [review]
Fixed radiobutton issues
[Check in: See comment 15]

this is actually james' code.
Attachment #136570 - Flags: review?(rginda) → review?(silver)
Comment on attachment 136570 [details] [diff] [review]
Fixed radiobutton issues
[Check in: See comment 15]

Looks good, though I think startup-newScript.* aren't used any more, and could
be removed.
Attachment #136570 - Flags: review?(silver) → review+
Comment on attachment 136570 [details] [diff] [review]
Fixed radiobutton issues
[Check in: See comment 15]

Want this in because otherwise the fix for regression bug 226549 will break
this.
Attachment #136570 - Flags: approval1.6b?
Attachment #136599 - Flags: review?(rginda)
Re comment 1 (which I overlooked), and comment 9:

<http://lxr.mozilla.org/seamonkey/search?string=startup-new>

*<startup-newURL.*> is called from
{
/extensions/irc/xul/content/prefpanel/startup.js, line 121 --
window.openDialog("chrome://chatzilla/content/prefpanel/startup-newURL.xul",
/extensions/irc/xul/content/prefpanel/startup.js, line 140 --
window.openDialog("chrome://chatzilla/content/prefpanel/startup-newURL.xul",
}

*<startup-newScript.*> is unused:
neil, would you add a third patch to get rid of them ?
{
/extensions/irc/xul/locale/en-US/pref-irc.dtd, line 177 -- <!ENTITY
startup-newScript.window.title "ChatZilla Script Item">
/extensions/irc/jar.mn, line 47 --
content/chatzilla/prefpanel/startup-newScript.js
(xul/content/prefpanel/startup-newScript.js)
/extensions/irc/jar.mn, line 48 --
content/chatzilla/prefpanel/startup-newScript.xul
(xul/content/prefpanel/startup-newScript.xul)
}
Adding 'neil@':
Please, read comment 12.
Comment on attachment 136570 [details] [diff] [review]
Fixed radiobutton issues
[Check in: See comment 15]

a=asa (on behalf of drivers) for checkin to 1.6beta
Attachment #136570 - Flags: approval1.6b? → approval1.6b+
Attachment #136422 - Flags: review?(neil.parkwaycc.co.uk)
I just checked in the changes to startup-newURL.*, it seemed wasteful to check
in changes to startup-newScript.* if we're going to remove them soon.
Product: Core → Other Applications
All of these changes have been checked in or applied in another way(*), and
/xul/prefpanel/* is no longer in use, as far as I'm aware.
I think this bug can and should be marked FIXED :-).

(*): 
< if (params.length >= 4 && (typeof params[3] != "undefined")) 
> if (arrayHasElementAt(params, 3))
Has the same effect.
OK, but (when) are startup-newScript.* going to be CVS removed?
Comment on attachment 136599 [details] [diff] [review]
Fixes another RegExp-caused regression

Fixed by
{{
1.3	silver%warwickcompsoc.co.uk	2004-03-03 14:38		Bug
229072 - Fixing RegExp regression in pref panel. Patch by Ian Neal
<bugzilla@arlen.demon.co.uk>. r=rginda@hacksrus.com
}}
Attachment #136599 - Attachment is obsolete: true
Attachment #136599 - Flags: review?(rginda)
Attachment #136570 - Attachment description: Fixed radiobutton issues → Fixed radiobutton issues [Check in: See comment 15]
Attachment #136570 - Attachment is obsolete: true
(In reply to comment #17)
> OK, but (when) are startup-newScript.* going to be CVS removed?

I don't know. I do not have CVS access, and as far as I'm aware, at this point
Silver is/was the only person on the ChatZilla project with CVS access, and he's
cut off from the net till at least the start of April. Which means it might take
a while, unless someone from outside the project gets permission to do remove
these files from CVS and does it for us (or ssieb / rginda get their CVS access
straightened out).

(In reply to comment #17)
> OK, but (when) are startup-newScript.* going to be CVS removed?

<http://lxr.mozilla.org/seamonkey/search?string=startup-new>
{{
startup-new
/extensions/irc/xul/content/prefpanel/startup-newScript.xul, line 50 --
title="&startup-newScript.window.title;">
/extensions/irc/xul/content/prefpanel/startup-newScript.xul, line 53 --
src="chrome://chatzilla/content/prefpanel/startup-newScript.js"/>
/extensions/irc/xul/content/prefpanel/startup-newURL.xul, line 47 --
title="&startup-newURL.window.title;"
/extensions/irc/xul/content/prefpanel/startup-newURL.xul, line 51 -- <script
src="chrome://chatzilla/content/prefpanel/startup-newURL.js"/>
/extensions/irc/xul/content/prefpanel/startup.js, line 121 --
window.openDialog("chrome://chatzilla/content/prefpanel/startup-newURL.xul",
/extensions/irc/xul/content/prefpanel/startup.js, line 140 --
window.openDialog("chrome://chatzilla/content/prefpanel/startup-newURL.xul", 
}}

startup-newScript.*, startup-newURL.*, startup.js were all removed from
<http://bonsai.mozilla.org/cvslog.cgi?file=mozilla/extensions/irc/jar.mn> in
{{
1.23	silver%warwickcompsoc.co.uk	2004-06-08 20:33	 	Bug 243629 - Landing of
ChatZilla 0.9.63. Lots of bugs fixed, including: 226223, 230328, 127662, 185729,
226410, 231150, 235650, 238551, 238716, 73257, 226408, 238612, 108087, 180577,
211461, 218070, 242381 and 147452. r=samuel@sieb.net
}}
Maybe there is more than these 2 files to cvs removed !?
Samuel/silver, can you help here ?
See also bug 259198. As stated in comment 16, the entire prefpanel directory
could be CVS rem'd, but whether it should / will be removed should be decided by
rginda, ssieb and/or Silver, I think.
OK, we'll mark this as fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Depends on: 259198
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.6beta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: