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)
SeaMonkey
UI Design
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+
alecf
:
superreview+
|
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).
| Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•22 years ago
|
||
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.!.
| Assignee | ||
Comment 2•22 years ago
|
||
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 3•22 years ago
|
||
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 4•22 years ago
|
||
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.
| Assignee | ||
Comment 7•22 years ago
|
||
Attachment #136427 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•22 years ago
|
||
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 9•22 years ago
|
||
Comment on attachment 136478 [details] [diff] [review]
(Av2) <xpistatus.*>
Well this looks OK at first glance, I'll try to test it soon.
Comment 10•22 years ago
|
||
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-
| Assignee | ||
Comment 11•22 years ago
|
||
Patch v2, plus comment 10 suggestions.
(my mistake)
| Assignee | ||
Updated•22 years ago
|
Attachment #136478 -
Attachment is obsolete: true
| Assignee | ||
Updated•22 years ago
|
Attachment #136628 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•22 years ago
|
Attachment #136628 -
Flags: review?(neil.parkwaycc.co.uk) → review+
| Assignee | ||
Comment 12•22 years ago
|
||
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?
Comment 13•22 years ago
|
||
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"/>
Comment 14•22 years ago
|
||
Darn, that line is to long, but I guess you know what I mean.
-> type/href and id/src should line up.
| Assignee | ||
Comment 15•22 years ago
|
||
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 !??
Comment 16•22 years ago
|
||
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="..."/>
| Assignee | ||
Comment 17•22 years ago
|
||
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 18•22 years ago
|
||
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 19•22 years ago
|
||
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 20•22 years ago
|
||
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+
| Assignee | ||
Comment 21•22 years ago
|
||
Patch v3, plus 2 line unwrapping (per comments).
Attachment #136628 -
Attachment is obsolete: true
| Assignee | ||
Comment 22•22 years ago
|
||
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 23•22 years ago
|
||
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+
| Assignee | ||
Updated•22 years ago
|
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)
| Assignee | ||
Updated•22 years ago
|
Attachment #136628 -
Attachment description: <xpistatus.*> patch v3 → <xpistatus.*> patch v3
[Check in: see v3b]
| Assignee | ||
Comment 24•22 years ago
|
||
| Assignee | ||
Comment 25•22 years ago
|
||
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 26•22 years ago
|
||
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-
| Assignee | ||
Comment 27•22 years ago
|
||
Patch v1, plus comment 26 suggestions.
Attachment #136781 -
Attachment is obsolete: true
| Assignee | ||
Comment 28•22 years ago
|
||
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)
| Assignee | ||
Comment 29•22 years ago
|
||
| Assignee | ||
Comment 30•22 years ago
|
||
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)
| Assignee | ||
Updated•22 years ago
|
Attachment #136781 -
Attachment description: <profileMigrationProgress.*> patch v1 → (Bv1) <profileMigrationProgress.*>
| Assignee | ||
Updated•22 years ago
|
Attachment #136750 -
Attachment description: <xpistatus.*> patch v3b
[Checked in: Comment 23] → (Av3b) <xpistatus.*>
[Checked in: Comment 23]
| Assignee | ||
Updated•22 years ago
|
Attachment #136427 -
Attachment description: <xpistatus.*> patch v1 → (Av1) <xpistatus.*>
| Assignee | ||
Updated•22 years ago
|
Attachment #136478 -
Attachment description: <xpistatus.*> patch v2 → (Av2) <xpistatus.*>
| Assignee | ||
Updated•22 years ago
|
Attachment #136628 -
Attachment description: <xpistatus.*> patch v3
[Check in: see v3b] → (Av3) <xpistatus.*>
[Check in: see v3b]
| Assignee | ||
Updated•22 years ago
|
Attachment #136628 -
Attachment description: (Av3) <xpistatus.*>
[Check in: see v3b] → (Av3) <xpistatus.*>
[Check in: see Av3b]
Comment 31•22 years ago
|
||
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 32•22 years ago
|
||
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-
| Assignee | ||
Comment 33•22 years ago
|
||
Patch Cv1, plus all(=2) |window.doneLoading = false;| removals.
Can you (super-)review, test, check it in ?
| Assignee | ||
Updated•22 years ago
|
Attachment #137197 -
Flags: superreview?(bugs)
Attachment #137197 -
Flags: review?(neil.parkwaycc.co.uk)
| Assignee | ||
Updated•22 years ago
|
Attachment #136988 -
Attachment is obsolete: true
Attachment #136988 -
Flags: superreview?(bugs)
Attachment #136988 -
Flags: review?(neil.parkwaycc.co.uk)
| Assignee | ||
Updated•22 years ago
|
Attachment #137197 -
Attachment description: (Cv2) <WalletViewer.* ++> → (Cv1b) <WalletViewer.* ++>
| Assignee | ||
Comment 34•22 years ago
|
||
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 :->
| Assignee | ||
Comment 35•22 years ago
|
||
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 36•22 years ago
|
||
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.
| Assignee | ||
Updated•22 years ago
|
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
| Assignee | ||
Comment 37•22 years ago
|
||
Patch Cv1b, plus comment 36 suggestions.
| Assignee | ||
Updated•22 years ago
|
Attachment #137197 -
Attachment is obsolete: true
Attachment #137197 -
Flags: superreview?(bugs)
Attachment #137197 -
Flags: review?(neil.parkwaycc.co.uk)
| Assignee | ||
Comment 38•22 years ago
|
||
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 39•22 years ago
|
||
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?
| Assignee | ||
Comment 40•22 years ago
|
||
Patch Cv1c, plus comment 39 suggestions.
Attachment #137239 -
Attachment is obsolete: true
| Assignee | ||
Updated•22 years ago
|
Attachment #137491 -
Flags: superreview?(bugs)
Attachment #137491 -
Flags: review?(neil.parkwaycc.co.uk)
| Assignee | ||
Comment 41•22 years ago
|
||
Comment on attachment 137491 [details] [diff] [review]
(Cv2) <Wallet*.*> (+ <*pref*>)
I forgot to write:
I did make some basic tests which were successful :-)
Comment 42•22 years ago
|
||
Comment on attachment 137491 [details] [diff] [review]
(Cv2) <Wallet*.*> (+ <*pref*>)
Would you mind putting the pref panel changes in their own bug?
| Assignee | ||
Comment 43•22 years ago
|
||
This really is patch Cv2, minus the <*pref*> part (moved to bug 228904).
| Assignee | ||
Updated•22 years ago
|
Attachment #137678 -
Flags: superreview?(bugs)
Attachment #137678 -
Flags: review?(neil.parkwaycc.co.uk)
| Assignee | ||
Updated•22 years ago
|
Attachment #137491 -
Attachment is obsolete: true
Attachment #137491 -
Flags: superreview?(bugs)
Attachment #137491 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 44•22 years ago
|
||
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 ;-)
| Assignee | ||
Comment 45•22 years ago
|
||
This is patch Cv2b, without the useless paramater to
|onload="parent.initPanel();"|.
| Assignee | ||
Updated•22 years ago
|
Attachment #137678 -
Attachment is obsolete: true
Attachment #137678 -
Flags: superreview?(bugs)
Attachment #137678 -
Flags: review?(neil.parkwaycc.co.uk)
| Assignee | ||
Updated•22 years ago
|
Attachment #137732 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•22 years ago
|
Attachment #137732 -
Flags: review?(neil.parkwaycc.co.uk) → review+
| Assignee | ||
Updated•22 years ago
|
Attachment #137732 -
Flags: superreview?(alecf)
Comment 46•22 years ago
|
||
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+
| Assignee | ||
Comment 47•22 years ago
|
||
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
Updated•21 years ago
|
Product: Browser → Seamonkey
Updated•15 years ago
|
Component: General → UI Design
QA Contact: general → ui-design
| Assignee | ||
Updated•14 years ago
|
Attachment #137732 -
Attachment is obsolete: false
| Assignee | ||
Updated•14 years ago
|
Attachment #136750 -
Attachment is obsolete: false
| Assignee | ||
Updated•14 years ago
|
Attachment #136628 -
Attachment is obsolete: false
| Assignee | ||
Updated•14 years ago
|
Attachment #136628 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•