Closed
Bug 243807
Opened 21 years ago
Closed 21 years ago
profile manager hangs other dialogs' action
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nian.liu, Assigned: nian.liu)
Details
Attachments
(3 files, 2 obsolete files)
2.93 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
2.93 KB,
patch
|
jst
:
superreview+
|
Details | Diff | Splinter Review |
2.93 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040302
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040302
open profile manager, open password manager or other manager. any operation on
password/other manager can't be triggered. it's also in moz1.7/trunk, and on solaris
Reproducible: Always
Steps to Reproduce:
1.from "tools" menu to open profile manager
2.from "tools" menu to open password manager
Actual Results:
operation on password manager can't be triggered
Expected Results:
operation on password manager should be triggered
Assignee: general → neo.liu
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 1•21 years ago
|
||
openWindow should be without "modal"
Attachment #149260 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 2•21 years ago
|
||
Comment on attachment 149260 [details] [diff] [review]
patch for 243807
This code was probably translated from the C++ profile startup code, which does
need it to be modal...
Attachment #149260 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Comment 3•21 years ago
|
||
Comment on attachment 149260 [details] [diff] [review]
patch for 243807
Mind you, it would be nice if you registered a window type for the profile
selection window so that you could raise an existing window.
Comment 4•21 years ago
|
||
Comment on attachment 149260 [details] [diff] [review]
patch for 243807
Oh, and you could probably use window.open instead of ww.openWindow too...
Assignee | ||
Comment 5•21 years ago
|
||
add register mechanism to keep from creating more than one instance
Attachment #149260 -
Attachment is obsolete: true
Assignee | ||
Comment 6•21 years ago
|
||
Comment on attachment 149391 [details] [diff] [review]
patch for 243807
neil,
new attach with register mechanism. pls. help me review it. and if there are
any other way to register, pls. point them out. btw, if that's ok, could you
please help me recommend a guy for sr?
Attachment #149391 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 7•21 years ago
|
||
Comment on attachment 149391 [details] [diff] [review]
patch for 243807
>+ var enumerator = wm.getEnumerator("mozilla:profileSelection");
>+ while (enumerator.hasMoreElements()) {
>+ var viewer = enumerator.getNext();
>+ if (viewer.arguments[0] == viewerType) {
>+ viewer.focus();
>+ return;
>+ }
>+ }
What's viewerType? It doesn't appear to be defined. I can't actually tell what
that test is for, otherwise I would suggest using wm.getMostRecentWindow
instead.
>+ window.openDialog( "chrome://communicator/content/profile/profileSelection.xul",
> null,
I missed this last time, but null is an invalid value here (it gets converted
to "null"). Ideally openDialog should ignore the value when using "chrome" as a
flag, but in the mean time please use "" or "_blank".
>- "centerscreen,chrome,modal,titlebar",
>+ "centerscreen,chrome,titlebar",
> params);
Assignee | ||
Comment 8•21 years ago
|
||
sorry, need strong coffee
Assignee | ||
Updated•21 years ago
|
Attachment #149391 -
Attachment is obsolete: true
Assignee | ||
Comment 9•21 years ago
|
||
Comment on attachment 149461 [details] [diff] [review]
patch for 243807
thanks again
Attachment #149461 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 10•21 years ago
|
||
Comment on attachment 149461 [details] [diff] [review]
patch for 243807
>+ if( promgrWin ){
>+ promgrWin.focus();
>+ }else{
Nit: Ugly inline spacing, it should look like this:
if (promgrWin) {
promgrWin.focus();
} else {
No need for a new patch, just get this changed before check in.
Attachment #149461 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Assignee | ||
Comment 11•21 years ago
|
||
code style modification
Assignee | ||
Updated•21 years ago
|
Attachment #149461 -
Flags: superreview?(jst)
Comment 12•21 years ago
|
||
Comment on attachment 149658 [details] [diff] [review]
patch for 243807 after review
+ if(promgrWin) {
I believe Neil wanted a space after the 'if' as well.
sr=jst, and you've tested that this doesn't break the profile manager on
startup (mozilla -P), right?
Attachment #149658 -
Flags: superreview+
Assignee | ||
Comment 13•21 years ago
|
||
yes, it's a different scenario and won't exec this code.
Assignee | ||
Comment 14•21 years ago
|
||
code style modification, more...
Comment 15•21 years ago
|
||
Fixed!
Checking in xpfe/communicator/resources/content/tasksOverlay.js;
/cvsroot/mozilla/xpfe/communicator/resources/content/tasksOverlay.js,v <--
tasksOverlay.js
new revision: 1.56; previous revision: 1.55
done
Checking in profile/resources/content/profileSelection.xul;
/cvsroot/mozilla/profile/resources/content/profileSelection.xul,v <--
profileSelection.xul
new revision: 1.54; previous revision: 1.53
done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #149391 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #149461 -
Flags: superreview?(jst)
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•