Version: 4.0 (using KDE 3.1.9)
Compiler: gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
OS: Linux (i686) release 2.4.20
The "smart" popup policy doesn't work anymore on http://www.sharereactor.com. Clicking on any
link will open popups, even if the policy is set to "deny".
Can you create a separate testcase of it and attach it to this report, please? The site seems to be
down for me.
Created attachment 1639 [details]
Testcase for sharereactor.com popup code
The form has a target with a non-existent frame name, so it will open a new window.
The existing popup blocking code is not called at all.
I tried to fix this myself, the patch is attached. Its a little ugly because it duplicates the
MessageBox code from kjs_bindings.cpp. It basically checks the following things:
1) Is the current page not within a frameset? -> Ask/Deny
2) Does a frame with the form target exist somewhere? -> Allow submit
3) Is no target specified for form? -> Allow submit
I hope the code is not too messy. I've seen several pages now that use this trick
to get around popup blockers and its really getting on my nerves.
Created attachment 1689 [details]
Patch for kjs_html.cpp
Fixed in CVS.