Closed Bug 51565 Opened 26 years ago Closed 26 years ago

help target for PSM opens in a new browser.

Categories

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

1.0 Branch
x86
Windows 98
defect

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: nitinp, Assigned: ddrinan0264)

References

Details

(Whiteboard: [nsbeta3-][pdtp3][rtm-] r=javi, r=danm, sr=brendan)

Attachments

(1 file)

The help targets for psm UI in the SA opens in a new browser. Also a PSM specific blank window comes up and just hangs around there. it is a must fix for nsbeta3.
adding keyword nsbeta3 and nominating for nsbeta3+
Keywords: nsbeta3
Summary: help target for PSM opens in a new browser. → help target for PSM opens in a new browser.
Whiteboard: [nsbets3+]
Blocks: 48444
Whiteboard: [nsbets3+] → [nsbeta3+]
Since this is nsbeta3+, setting priority to P2
Priority: P3 → P2
not high frequency window, no crash, no data loss. Workaround seems to be to close the window. PDTP3.
Priority: P2 → P3
Whiteboard: [nsbeta3+] → [nsbeta3+][pdtp3]
Target Milestone: --- → Future
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.
Whiteboard: [nsbeta3+][pdtp3] → [nsbeta3-][pdtp3]
Setting keyword rtm.
Keywords: rtm
this is still happening in today's MN6 build for windows and linux.
Adding [rtm need info] to whiteboard.
Whiteboard: [nsbeta3-][pdtp3] → [nsbeta3-][pdtp3][rtm need info]
r=javi
Doesn't this undo a change that I reviewed just recently? What got fixed? /be
Adding brendan to the cc-list. Using nsIDOMWindow.OpenDialog() to create the security advisor causes the targets to get messed up when we use <A HREF=xxx onClick=top.window.open(...)..</A>. What happens is that a blank window is open (which should have contained the content) and a separate browser window is created which contains the content. You can see this when you click on the lock icon in the bowser. This brings up security advisor. Click on any of the hyperlinks in the content page. Using nsIDOMWindow.Open() fixes the problem.
Oh, right -- this is the "don't open a non-modal window from a modal one" problem. But didn't the WIN32 ifdef fix something on Windows? Or was Windows just as bad off, when opening a non-modal from a modal window? And what was that ResizeTo for, anyway? Get danm to r=. /be
It was Linux that was really bad with using nsIDOMWindow.OpenDialog but we've found out with this bug that WIN32 has some problems as well. So we've decided to go back to plain old nsIDOMWindow.Open(). Javier has reviewed this already, so if danm can do a super-review that would be great.
danm isn't one of the blessed dispensers of super reviews, and he's suspicious of this problem's described fix, anyway. Notice that the code for both window.open and window.openDialog looks like this inside: open(...) { OpenInternal(...); } by which I mean to say, they're the same function. There are a few differences controlled by a boolean parameter to the inner function: openDialog allows the passing of a fourth parameter, and imposes a few niggling differences in the treatment of chrome features. (Oh, and recently added were security distinctions which disallow one function or the other under different circumstances. If that's the problem, you'll either suffer no ill or see an error in the debug window, and no new window at all.) Since you guys aren't using any of the features that make the two functions distinct, you might as well use open. I don't understand why that helps, though.
Oh. I see Brendan wanted me to review it. I gather from the above comments that your proposed patch is like the last one posted (17570) except that you're using Open in all cases, rather than the single OpenDialog mentioned in that patch? (And therefore the if (modal && win) check goes away?) If so, then sure. At least they're all the same function; I like that. Open all the way, then. (But like Brendan said -- why Resize, and only on Windows? And as long as you're making the security window nonmodal on every platform but Windows, why continue to curse unlucky Windows? Why not just make 'em all nonmodal?)
My lips flap a lot today and not much of worth comes out. Allow me to try to be more specific. Personally, I'd be happy if all three platforms got the same modal or nonmodal window. And I'm curious what the ResizeTo is for. But I wouldn't let any of that stop this bug's fix being checked in. Without an exact patch being posted, I'm not completely certain. But if the actual proposed patch is as I described two messages above, and for some reason this makes everything better, I figure it can't hurt. r=danm.
Javi, David, can you respond to danm's salient points? (viz, why is there still an #ifdef WIN32 around the window features setup code? and what was the ResizeTo all about, anyway?) /be
There is an ifdef win32 around the setup code because Linux did not like the modal flag beind included. At the point in time I added the ifdef, I didn't want to change the WIN32 implementation because it worked as we wanted it and the Linux change was more of a workaround. I don't know what would happen if we just changed all the windows to be non-modal. (For Keygen, I'm not sure if the right window would end up in the foreground for instance.) The ResizeTo has been in there since before ddrinan and I started to work actively on psm-glue. IMHO, it should be taken out because when that code is reached, the window has disappeared and the ResizeTo is in essence a no op. Tends to bring up an assertion if I recall correctly.
You're still using "dependent", which will force the new window on top (on Windows OS, at least) so it should be safe enough. I'm concerned that there must be some reason for wanting the window modal in the first place; that it's important the window that launched the security dialog be unreachable while it's up. And so I'm concerned that the platforms that get the nonmodal version will turn up some unexpected parity bug. But I see; in the interest of smallest impact, might as well only change the problem OS. Ummmm ... my apologies. I was misreading the patch above. For some reason I missed all the - signs. You're just removing all the extra stuff, using a single Open call, and keeping the extant code just above that makes only WIN32 modal. Beauty. Jeez, check it in. r=danm. I'm going to go home now, and drop my eyeballs off at the dry cleaners.
Whiteboard: [nsbeta3-][pdtp3][rtm need info] → [nsbeta3-][pdtp3][rtm need info] r=javi, r=danm, NEED SR=
sr=brendan@mozilla.org. Let's talk later about the right trunk cleanup--please leave this bug open for that discussion. /be
Whiteboard: [nsbeta3-][pdtp3][rtm need info] r=javi, r=danm, NEED SR= → [nsbeta3-][pdtp3][rtm+] r=javi, r=danm, NEED SR=
Whiteboard: [nsbeta3-][pdtp3][rtm+] r=javi, r=danm, NEED SR= → [nsbeta3-][pdtp3][rtm+] r=javi, r=danm, sr=brendan
rtm-, see comment of 9/19.
Whiteboard: [nsbeta3-][pdtp3][rtm+] r=javi, r=danm, sr=brendan → [nsbeta3-][pdtp3][rtm-] r=javi, r=danm, sr=brendan
Win32 bug only now. Worksforme with the 10/29 MN6 builds on Mac and Linux.
OS: All → Windows 98
Hardware: All → PC
Worksforme on WinNT and Win98.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Verified on the 11/27 Win98 trunk build.
Status: RESOLVED → VERIFIED
Mass changing Security:Crypto to PSM
Component: Security: Crypto → Client Library
Product: Browser → PSM
Target Milestone: Future → ---
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.

Attachment

General

Created:
Updated:
Size: