Closed Bug 170172 Opened 22 years ago Closed 22 years ago

a second cookie conformation dialog's for one site is not placed correctly on screen

Categories

(Core :: Networking: Cookies, defect, P4)

x86
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 173844
mozilla1.3beta

People

(Reporter: mvl, Assigned: morse)

References

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20020919 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20020919 When you have set mozilla to ask you before storing a cookie, the dialog that pops up should be centered in the browser windwo. The first dialog does that. But when a second cookie is set, that dialog is not placed correctly. Reproducible: Always Steps to Reproduce: 1. set mozilla ta ask before sotring a cookie 2. visit a site which sets at least 2 cookies, like http://nu.nl 3. deny the first cookie Actual Results: second dialog is not centered to the window Expected Results: dialog centered On my computer (linux running enlightenment), when the first dialogs pop's up, that dialog gets focus. When I close that dialog, focus is not returned to the browser. Now the second dialog pops up. The code for that dialog ask what te active window is, to use as parent for the dialog. As no window is active, the dialog has no parent, en thus is centered on the screen instead of the window. The problem in fixing this is that I don't know of a way to as via nsIPrompt for eaither the parent of that prompt, or to open a dialog with custum xul. So I see 3 options: 1. Make it possible to ask the parent via nsIPrompt 2. Make DoDialog accessible via idl 3. From the networking lib, instead of passing aPrompter, pass aParent to the cookie library.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
I will try to do this myself.
Michiel, did you mean to assign the bug to yourself?
Yes, I ment that. I have already tried some things. I have a patch for option 2 (not complete checked and commented) But I would want to know which options is the best. I can see there are some other compontents involved.
Michiel, without looking into this in much more detail, I have no idea which of your suggestions would be best. But I would imagine that the best thing would be to find out why the browser did not get focus returned to it after the first dialog window was dismissed.
It seems to be a windowmanager issue. I tried it with openbox instead of enlightenment, and it works as expected. The main windows gets focus before the second dialog appears, and the dialog is plced correctly.
Priority: -- → P4
Target Milestone: --- → mozilla1.3beta
*** Bug 150628 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 173844 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
bug 173844 has a good description of the problem.
You need to log in before you can comment on or make changes to this bug.