Bug 307876 - khtmlsettingsplugin javascript disable reset on file:// load
Summary: khtmlsettingsplugin javascript disable reset on file:// load
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: htmlsettingsplugin (show other bugs)
Version: 4.8.4
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2012-10-05 05:19 UTC by David Fries
Modified: 2018-11-09 03:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Fries 2012-10-05 05:19:24 UTC
Browse to a local file:// .html file, use HTML Settings to disable JavaScript, a local web page, same file, following a link to another local file, reloading, will enable JavaScript again, konqueror 4.4.5 did not do this.  It seems to generally enable again for web pages from a host as well, but I've seen it not enable again there as well.
This bug combined with #72811 "Don't ask users to accept cookies without domain" (see comment "2012-01-09 23:02:15 UTC"), and the cookies settings 'Enable Cookies, Only accept cookies from originating server, Ask for confirmation', make for a very painful looking at any web page that uses javascript to request cookies, because anytime you go to another page it prompts to accept a dozen cookies, for each load no matter if you say accept or reject or for all from this domain (which is empty).

Reproducible: Always

Steps to Reproduce:
1.Browse to a local file:// .html file
2.Tools > HTML Settings > [disable] JavaScript
3.click on a link to another local file:// .html file
4. observe JavaScript is now enabled, Tools > HTML Settings > JavaScript
Actual Results:  
observe JavaScript is now enabled, Tools > HTML Settings > JavaScript

Expected Results:  
JavaScript still disabled (this Tab/Window), until I enable it again
Comment 1 Andrew Crouthamel 2018-11-09 00:55:29 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 David Fries 2018-11-09 03:29:09 UTC
I set the Konqueror view mode for WebKit, in Tools > HTML settings > uncheck JavaScript, reload while I'm on a local webpage that has JavaScript, the first refresh shows the page as if JavaScript didn't run, but the Tools HTML Settings > JavaScript is checked, reload again and the page displays with JavaScript enabled.
Set Konqueror view mode for KHTML, in Tools > HTML Settings > uncheck JavaScript, reload page and the page displays with JavaScript enabled and switches back to WebKit.
tested with,
KDE 4.14.26
Konqueror 4.14.25
Comment 3 Andrew Crouthamel 2018-11-09 03:38:01 UTC
Thanks for the update!