Closed Bug 46705 Opened 26 years ago Closed 25 years ago

Security Advisor is not modal

Categories

(Core Graveyard :: Security: UI, defect, P3)

1.0 Branch
x86
Linux
defect

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: junruh, Assigned: ddrinan0264)

References

Details

(Keywords: embed, platform-parity, Whiteboard: [nsbeta3-])

1.) In Nav. 4.7, click on the lock icon to open Security Advisor. 2.) Try to click anywhere else in the Navigator before closing the Security Advisor, and notice that you cannot. 3.) Start Netscape 6 and open the Security Advisor. 4.) Click on the browser window and visit a different URL. Note that you can. 5.) Close the browser window. Notice that you can, and the Security Advisor is still open. What is expected: That once the Security Advisor is open, you cannot do anything else with Netscape 6 until the Security Advisor is closed.
Because of the use of nsCommonDialogs, or the use of the nsIPrompt service, this component can not be used for embedding. Adding the embedding keyword. How To Bring Up A Modal Dialog: You need to know what window you want to have modality against. This will be a nsIDOMWindow. Using a magic "hidden" window breaks modality and embedding application may not have this hack. One you have the parent DOMWindow, you simply: nsCOMPtr<nsIPrompt> prompter; aDOMWinow->GetPrompt(getter_AddRefs(prompter)); if (prompter) prompter-> Any other way that you try to bring up a dialog may not work in an embedding application. To reiterate, do not use the nsICommonDialogs interface -or- a nsIPrompt service if you want your component in a non-seamonkey app. I don't have a DOMWindow?! If you don't have a DOMWindow, you need to get one. Just about every place I saw that used the hidden window, could have used the real parent window with some work. There really is no place in the code where we should be displaying a modal dialog without knowing what parent window we are modal against. If you find a case where you don't have a top level window, lets talk.
Keywords: embed
Blocks: 48444
Keywords: nsbeta3
Assgning to ddrinan and making nsbeta3+.
Assignee: javi → ddrinan
Whiteboard: [nsbeta3+]
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed.
Reopening. This is still not fixed for linux - I can place the Security Manager behind the main browser window, which I cannot do with 4.7. Win is OK, Mac is unknown.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Does this happen when you open the security advisor via the tasks menu? If so, IMHO that requires too much work for RTM. The tasks menu opens up the security advisor through JavaScript and we don't have a way to find the parent window currently. If you open it through the lock icon, then that is a bug.
"If you open it through the lock icon, then that is a bug." This is a bug. Whether the Security Manager is opened by the lock or by the tasks menu, I can still place the Security Manager behind the main window.
per PDT: P3-P5 priority bugs changed from nsbeta3+ to nsbeta3- since we have more important work to do for Seamonkey. If you disagree, please state your case in the bug report and nominate for rtm. Thanks. Also, per Jud, embed bugs can be marked nsbeta3-. It appears the bug only happens for Linux now? If so, pls correct the platform field.
Keywords: pp
Whiteboard: [nsbeta3+] → [nsbeta3-]
Linux only.
OS: All → Linux
Hardware: All → PC
Marking wontfix.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → WONTFIX
Verified wontfix.
Status: RESOLVED → VERIFIED
Mass changing Security:Crypto to PSM
Component: Security: Crypto → Client Library
Product: Browser → PSM
Version: other → 2.1
Mass changing Security:Crypto to PSM
Product: PSM → Core
Version: psm2.1 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.