Permalink
Browse files

Tunnel private-browsing to QtWebKit correctly

  • Loading branch information...
The-Compiler committed Aug 2, 2016
1 parent afde5bb commit f73f3a2001c20f55640a67b1c31ed16a19d8a326
@@ -433,10 +433,10 @@ def update_settings(section, option):
QWebSettings.setIconDatabasePath('')
else:
QWebSettings.setIconDatabasePath(cache_path)
else:
try:
mapping = MAPPINGS[section][option]
except KeyError:
return
value = config.get(section, option)
mapping.set(value)
try:
mapping = MAPPINGS[section][option]
except KeyError:
return
value = config.get(section, option)
mapping.set(value)
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function check_storage() {
try {
localStorage.qute_test = "foo";
console.log("localstorage works!");
} catch (e) {
console.log("localstorage does not work!");
}
}
</script>
</head>
<body onload="check_storage()">
<p>This page checks local storage on load and logs via console.log</p>
</body>
</html>
@@ -471,6 +471,13 @@ Feature: Various utility commands.
And I open cookies in a new tab
Then the cookie qute-test should be set to 42
## https://github.com/The-Compiler/qutebrowser/issues/1742
Scenario: Private browsing is activated in QtWebKit without restart
When I set general -> private-browsing to true
And I open data/javascript/localstorage.html
Then "localstorage does not work!" should be logged via javascript
Scenario: :repeat-command
Given I open data/scroll.html
And I run :tab-only

0 comments on commit f73f3a2

Please sign in to comment.