Summary: | "Smart" window open policy bogus | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | ck |
Component: | kjs | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
ck
2002-03-25 16:23:17 UTC
On Monday 25 March 2002 11:23 ck@heise.de wrote: > Judging from the code in khtml/ecma/kjs_window.cpp attempts to open a > window via javascript are ignored if they are not result of a > click/keypress action. I have a case where the use does indeed click a > button but the application goes through some code before attempting to > open that additional window. In this case the window is *not* opened if I > choose the "smart" policy in Konqueror settings. Not sure if this is a > feature request or a bug (or what feature to request here :-( Yes thus Smart policy is new and still in its infancy I think. There are lots of ways for it not to work and there is supposed to be a faq at sometime about it. For instance window.open() which does a window.open will not work since the second one is not interactive. Thanks for the report and over time hopefully we can develop this one a bit more. -- George Staikos > I have a case where the use does indeed click a button but the > application goes through some code before attempting to open that > additional window. Can you submit a testcase which shows this? Thanks. -- David FAURE david@mandrakesoft.com faure@kde.org http://people.mandrakesoft.com/~david http://www.konqueror.org KDE 3.0: Konquering the Desktops -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Dienstag 26. März 2002 22:59 schrieb David Faure: > > I have a case where the use does indeed click a button but the > > application goes through some code before attempting to open that > > additional window. > > Can you submit a testcase which shows this? Thanks. Not easily. The problem happens with a perl script which is a bit too big to submit. This is going on: - - The user clicks on a <input type=button>-Element. - - This triggers a Javascript function which in turn calls the *same* Perl script again by setting the location property of the window object adding a CGI parameter - - In its second execution the Perl script uses this parameter to trigger a JS function (using "onload") which then *should* open the window. If "clever" mode is selected in Konqueror settings it does not do this. Yes this is somewhat contrived. And I would not say that it's actually a bug in KJS - the question is simply what "clever" mode should do. Or if it would be more sensible to implement JS open window policies depending on the server address like for the overall JS policies. Kind regards - -- Christian Kirsch ck@ix.heise.de Tel +49-30-78702288 +49-511-5352-590 Fax +49-30-78702289 KEINE ANNAHME VON DOC-DATEIEN -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8oYFqYamCtkVm7roRAtEZAJ0SYXQn/yWvTnm80vflVDhOVcYjCQCfYgXY DZUxVBLzwQb8oOKR/e1sPzY= =R4rb -----END PGP SIGNATURE----- -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 25 March 2002 17:23 ck@heise.de wrote: > Package: kjs > Version: KDE 3.0.0 CVS/CVSup/Snapshot > Severity: normal > Installed from: Compiled sources > Compiler: gcc-2.96 > OS: Linux > OS/Compiler notes: Not Specified > > Judging from the code in khtml/ecma/kjs_window.cpp attempts to open a window via javascript are ignored if they are not result of a click/keypress action. I have a case where the use does indeed click a button but the application goes through some code before attempting to open that additional window. > In this case the window is *not* opened if I choose the "smart" policy in Konqueror settings. > Not sure if this is a feature request or a bug (or what feature to request here :-( I don't know either but a testcase would help ;) - -- David FAURE david@mandrakesoft.com faure@kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/ http://www.koffice.org/ Back from holidays -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9U9VG72KcVAmwbhARAvMHAJ9pNuxDePUNRjsxPVHNUdb7RwA//ACeIrx0 Jca7rJdNHhGJr5cr2L3Cox0= =QJuS -----END PGP SIGNATURE----- |