Open Bug 226958 Opened 22 years ago Updated 11 years ago

Bug 197315, "other" files: Convert <window class="dialog"> to <dialog>

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
trivial

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: sgautherie, Assigned: sgautherie)

References

Details

Attachments

(2 files, 11 obsolete files)

3.26 KB, patch
Details | Diff | Splinter Review
14.52 KB, patch
neil
: review+
Details | Diff | Splinter Review
See bug 197315 "ToDoList" attachment: there are +/- 6 <.xul> files to process: { ** /extensions, 3 files ** /embedding, 1 files ** /profile, 1 files ** /xpinstall, 1 files } </xpfe> and </mailnews> files have a dedicated bug(s).
Status: NEW → ASSIGNED
Attached patch (Av1) <xpistatus.*> (obsolete) — Splinter Review
This dialog is called at <http://lxr.mozilla.org/seamonkey/source/xpinstall/src/nsXPInstallManager.cpp#394> { 393 rv = wwatch->OpenWindow(0, 394 "chrome://communicator/content/xpinstall/xpistatus.xul", 395 "_blank", 396 "chrome,centerscreen,titlebar,resizable", 397 params, 398 getter_AddRefs(newWindow)); } I don't know how to test this patch.!.
Comment on attachment 136427 [details] [diff] [review] (Av1) <xpistatus.*> 'r=?': (see comment 1) Can you review, test, check it in ? Or fix it, or explain to me what else needs to be done, since I wonder a little on this one !
Attachment #136427 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 136427 [details] [diff] [review] (Av1) <xpistatus.*> >- document.getElementById("ok").disabled = false; >+ document.getElementById("accept").disabled = false; > document.getElementById("cancel").disabled = true; It would be neat if you could focus the accept button. >+ document.getElementById("accept").disabled = true; > document.getElementById("cancel").focus(); The syntax for dialog buttons is slightly different: document.documentElement.getButton("accept") [or "cancel"]
Attachment #136427 - Flags: review?(neil.parkwaycc.co.uk) → review-
Comment on attachment 136427 [details] [diff] [review] (Av1) <xpistatus.*> >-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- >- * >- * The contents of this file are subject to the Netscape Public >+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ >+ >+/* The contents of this file are subject to the Netscape Public Also don't change this unless you can point to a definitive document that specifies that the mode line should be separate.
"It would be neat if you could focus the accept button." And what about the default attribute? http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/dialog.xml#199
I just realized that you're not changing the default selected/focused button. I was doing something myself for MultiZilla, so that's what got me confused.
Attached patch (Av2) <xpistatus.*> (obsolete) — Splinter Review
Patch v1, plus comment 3 and comment 4 suggestions.
Attachment #136427 - Attachment is obsolete: true
Comment on attachment 136478 [details] [diff] [review] (Av2) <xpistatus.*> 'r=?': (see comment 7) Can you review, test, check it in ? Or fix it, or explain to me what else needs to be done, since I wonder a little on this one !
Attachment #136478 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 136478 [details] [diff] [review] (Av2) <xpistatus.*> Well this looks OK at first glance, I'll try to test it soon.
Comment on attachment 136478 [details] [diff] [review] (Av2) <xpistatus.*> > <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" Oops ;-) >-</window> >+</dialog> The rest of the patch is ok, though.
Attachment #136478 - Flags: review?(neil.parkwaycc.co.uk) → review-
Patch v2, plus comment 10 suggestions. (my mistake)
Attachment #136478 - Attachment is obsolete: true
Attachment #136628 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #136628 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 136628 [details] [diff] [review] (Av3) <xpistatus.*> [Check in: see Av3b] 'approval1.6b=?': Trivial U.I. code cleanup.
Attachment #136628 - Flags: superreview?(brendan)
Attachment #136628 - Flags: approval1.6b?
Hmm, guess Neil missed them, but can you please line up like this: +<?xml-stylesheet type="text/css" - href="chrome://communicator/skin/xpinstall/xpinstall.css"?> + href="chrome://communicator/skin/xpinstall/xpinstall.css"?> + <stringbundle id="xpinstallBundle" - src="chrome://communicator/locale/xpinstall/xpinstall.properties"/> + src="chrome://communicator/locale/xpinstall/xpinstall.properties"/>
Darn, that line is to long, but I guess you know what I mean. -> type/href and id/src should line up.
Re comment 13 and comment 14: For the purpose of this bug, since it was pure reformatting, I may rather undo theses line wraps !!? If you do want me to wrap the lines, my understanding of your comments is that it will look like: { <?xml-stylesheet type="..." href="..."?> <stringbundle id="..." src="..."/> } no matter if the lines still go after column 79 !??
Ok, the comments are a bit confusing, but this is what I had in mind: <?xml-stylesheet type="text/css"... href="..."?> <stringbundle id="xpinstallBundle"... src="..."/>
Re comment 16: HJ: I see (and it was my first though when I did the patch). neil: What should I do now: 1) Leave the patch as it is ? :-( 2) Apply HJ's comment, when the result is <= 79 columns and revert to previous state when > 79 anyway. :-| 3) Revert all to previous state (> 79). :-)
Comment on attachment 136628 [details] [diff] [review] (Av3) <xpistatus.*> [Check in: see Av3b] This is not important for 1.6, and I don't have time to spend sr'ing it. Suggest you take HJ's style point to heart and prepare a 1.7a patch. /be
Comment on attachment 136628 [details] [diff] [review] (Av3) <xpistatus.*> [Check in: see Av3b] +<?xml-stylesheet type="text/css" + href="chrome://communicator/skin/xpinstall/xpinstall.css"?> No newlines in stylesheet includes please, or in the stringbundle use. Do that and sr=ben@mozilla.org
Comment on attachment 136628 [details] [diff] [review] (Av3) <xpistatus.*> [Check in: see Av3b] a=asa (on behalf of drivers) for checkin to 1.6beta
Attachment #136628 - Flags: approval1.6b? → approval1.6b+
Patch v3, plus 2 line unwrapping (per comments).
Attachment #136628 - Attachment is obsolete: true
Comment on attachment 136750 [details] [diff] [review] (Av3b) <xpistatus.*> [Checked in: Comment 23] neil: Can you "tranfer" r=neil, sr=ben (comment 19), a=asa from patch v3, and check it in ?
Attachment #136750 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 136628 [details] [diff] [review] (Av3) <xpistatus.*> [Check in: see Av3b] I checked in the patch with ben's changes.
Attachment #136628 - Flags: superreview?(brendan) → superreview+
Attachment #136750 - Attachment description: <xpistatus.*> patch v3b → <xpistatus.*> patch v3b [Checked in: Comment 23]
Attachment #136750 - Attachment is obsolete: true
Attachment #136750 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #136628 - Attachment description: <xpistatus.*> patch v3 → <xpistatus.*> patch v3 [Check in: see v3b]
Comment on attachment 136781 [details] [diff] [review] (Bv1) <profileMigrationProgress.*> I tried to test with window.open( "", "chrome://communicator/content/profile/profileMigrationProgress.xul", "_blank", "centerscreen,modal,titlebar" ); but got a blank window only :-( The actual call is at /profile/pref-migrator/src/nsPrefMigration.cpp, line 338+.
Attachment #136781 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 136781 [details] [diff] [review] (Bv1) <profileMigrationProgress.*> Yuck, what an ugly dialog. I don't think it's worth converting this.
Attachment #136781 - Flags: review?(neil.parkwaycc.co.uk) → review-
Patch v1, plus comment 26 suggestions.
Attachment #136781 - Attachment is obsolete: true
Comment on attachment 136980 [details] [diff] [review] (Bv2) <profileMigrationProgress.*> trivial cleanup only 'r=?': (see comment 27) Can you review, check it in ?
Attachment #136980 - Flags: review?(neil.parkwaycc.co.uk)
Attached patch (Cv1) <WalletViewer.*> (obsolete) — Splinter Review
Comment on attachment 136988 [details] [diff] [review] (Cv1) <WalletViewer.*> I tested Cancel/Help buttons only. I wonder about the purpose of |window.doneLoading = false;|. Can you (super-)review, test, check it in ?
Attachment #136988 - Flags: superreview?(bugs)
Attachment #136988 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #136781 - Attachment description: <profileMigrationProgress.*> patch v1 → (Bv1) <profileMigrationProgress.*>
Attachment #136750 - Attachment description: <xpistatus.*> patch v3b [Checked in: Comment 23] → (Av3b) <xpistatus.*> [Checked in: Comment 23]
Attachment #136427 - Attachment description: <xpistatus.*> patch v1 → (Av1) <xpistatus.*>
Attachment #136478 - Attachment description: <xpistatus.*> patch v2 → (Av2) <xpistatus.*>
Attachment #136628 - Attachment description: <xpistatus.*> patch v3 [Check in: see v3b] → (Av3) <xpistatus.*> [Check in: see v3b]
Attachment #136628 - Attachment description: (Av3) <xpistatus.*> [Check in: see v3b] → (Av3) <xpistatus.*> [Check in: see Av3b]
window.doneLoading was copied from nsPrefWindow.js where it doesn't appear to be used either ;-) Could you post the patch that you claim gives you that JS exception?
Comment on attachment 136980 [details] [diff] [review] (Bv2) <profileMigrationProgress.*> trivial cleanup only Here's a better comment: <!-- TODO: Make profile migration cancelable and convert this to a dialog -->
Attachment #136980 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attached patch (Cv1b) <WalletViewer.* ++> (obsolete) — Splinter Review
Patch Cv1, plus all(=2) |window.doneLoading = false;| removals. Can you (super-)review, test, check it in ?
Attachment #137197 - Flags: superreview?(bugs)
Attachment #137197 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #136988 - Attachment is obsolete: true
Attachment #136988 - Flags: superreview?(bugs)
Attachment #136988 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #137197 - Attachment description: (Cv2) <WalletViewer.* ++> → (Cv1b) <WalletViewer.* ++>
Comment 31 requested patch: It's Cv1b, with |Startup()| moved from xul to js file. neil: Since you're interested, I did some more tests: see the comments in the patch. I guess that you'll want me to update Cv1b: tell me in what way :->
Comment on attachment 136980 [details] [diff] [review] (Bv2) <profileMigrationProgress.*> trivial cleanup only '<profileMigrationProgress.*>' subject eventually moved to bug 228106.
Attachment #136980 - Attachment is obsolete: true
Comment on attachment 137212 [details] [diff] [review] (Cv1b_js_error) <WalletViewer.* ++> {for debug only !} [See coment 36] Ah, I see what's going on here. The wallet code was copied from the prefs code, which allows each page to have a startup function, although none of the wallet pages actually uses it (WalletUrlspecific.xul uses generate() instead). Unfortunately what the pages do is to include WalletViewer.js for no reason at all, thus causing confusion when you try to move Startup there.
Attachment #137212 - Attachment description: (Cv1b_js_error) <WalletViewer.* ++> {for debug only !} → (Cv1b_js_error) <WalletViewer.* ++> {for debug only !} [See coment 36]
Attachment #137212 - Attachment is obsolete: true
Attached patch (Cv1c) <WalletViewer.* ++> (obsolete) — Splinter Review
Patch Cv1b, plus comment 36 suggestions.
Attachment #137197 - Attachment is obsolete: true
Attachment #137197 - Flags: superreview?(bugs)
Attachment #137197 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 137239 [details] [diff] [review] (Cv1c) <WalletViewer.* ++> 'approval1.6=?': Trivial U.I. code cleanup.
Attachment #137239 - Flags: superreview?(bugs)
Attachment #137239 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #137239 - Flags: approval1.6?
Comment on attachment 137239 [details] [diff] [review] (Cv1c) <WalletViewer.* ++> >+ ondialogaccept="return hWalletViewer.onAccept();" >- onOK: >+ onAccept: >- if ('Startup' in window.frames[ this.contentFrame ]) { >- window.frames[ this.contentFrame ].Startup(); >- } >- I don't like these changes, this dialog should resemble the preferences dialog, also WalletUrlspecific should eventually get fixed to use Startup anyway (unless you'd care to fix it too, of course...)
Attachment #137239 - Flags: superreview?(bugs)
Attachment #137239 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #137239 - Flags: review-
Attachment #137239 - Flags: approval1.6?
Attached patch (Cv2) <Wallet*.*> (+ <*pref*>) (obsolete) — Splinter Review
Patch Cv1c, plus comment 39 suggestions.
Attachment #137239 - Attachment is obsolete: true
Attachment #137491 - Flags: superreview?(bugs)
Attachment #137491 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 137491 [details] [diff] [review] (Cv2) <Wallet*.*> (+ <*pref*>) I forgot to write: I did make some basic tests which were successful :-)
Comment on attachment 137491 [details] [diff] [review] (Cv2) <Wallet*.*> (+ <*pref*>) Would you mind putting the pref panel changes in their own bug?
Attached patch (Cv2b) <Wallet*.*> (obsolete) — Splinter Review
This really is patch Cv2, minus the <*pref*> part (moved to bug 228904).
Attachment #137678 - Flags: superreview?(bugs)
Attachment #137678 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #137491 - Attachment is obsolete: true
Attachment #137491 - Flags: superreview?(bugs)
Attachment #137491 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 137678 [details] [diff] [review] (Cv2b) <Wallet*.*> >- onOK: >+ onAccept: Nit: indentation wrong >- onload="Startup();" >+ onload="onLoad();" I thought the whole point was that we didn't have to change this. >- width="720" height="470"> >+ width="720" height="470" >+ buttons="accept,cancel,help" >+ ondialogaccept="return hWalletViewer.onAccept();" >+ ondialogcancel="return hWalletViewer.onCancel();" >+ ondialoghelp="doHelpButton();"> You could leave the width and height at the end (shorter patch ;-)
This is patch Cv2b, without the useless paramater to |onload="parent.initPanel();"|.
Attachment #137678 - Attachment is obsolete: true
Attachment #137678 - Flags: superreview?(bugs)
Attachment #137678 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #137732 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #137732 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #137732 - Flags: superreview?(alecf)
Comment on attachment 137732 [details] [diff] [review] (Cv2c) <Wallet*.*> [Checked in: Comment 47] damn, nice cleanup sr=alecf assuming it all works well.
Attachment #137732 - Flags: superreview?(alecf) → superreview+
Comment on attachment 137732 [details] [diff] [review] (Cv2c) <Wallet*.*> [Checked in: Comment 47] Checked in by { neil%parkwaycc.co.uk Dec 20 10:15 }
Attachment #137732 - Attachment description: (Cv2c) <Wallet*.*> → (Cv2c) <Wallet*.*> [Checked in: Comment 47]
Attachment #137732 - Attachment is obsolete: true
Product: Browser → Seamonkey
Depends on: 228102
Component: General → UI Design
QA Contact: general → ui-design
Attachment #137732 - Attachment is obsolete: false
Attachment #136750 - Attachment is obsolete: false
Attachment #136628 - Attachment is obsolete: false
Attachment #136628 - Attachment is obsolete: true
Depends on: 1106536
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: