mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
JavaScript privacy options, update, part1
This commit is contained in:
parent
ea604d5bca
commit
d8e6f5f483
@ -33,6 +33,10 @@ JsOptions::JsOptions(QWidget* parent)
|
|||||||
settings.beginGroup("Web-Browser-Settings");
|
settings.beginGroup("Web-Browser-Settings");
|
||||||
ui->jscanCloseWindow->setChecked(settings.value("allowJavaScriptCloseWindow", false).toBool());
|
ui->jscanCloseWindow->setChecked(settings.value("allowJavaScriptCloseWindow", false).toBool());
|
||||||
ui->jscanOpenWindow->setChecked(settings.value("allowJavaScriptOpenWindow", false).toBool());
|
ui->jscanOpenWindow->setChecked(settings.value("allowJavaScriptOpenWindow", false).toBool());
|
||||||
|
ui->jscanChangeSize->setChecked(settings.value("allowJavaScriptGeometryChange", false).toBool());
|
||||||
|
ui->jscanHideMenu->setChecked(settings.value("allowJavaScriptHideMenuBar", false).toBool());
|
||||||
|
ui->jscanHideStatus->setChecked(settings.value("allowJavaScriptHideStatusBar", false).toBool());
|
||||||
|
ui->jscanHideTool->setChecked(settings.value("allowJavaScriptHideToolBar", false).toBool());
|
||||||
ui->jscanAccessClipboard->setChecked(settings.value("allowJavaScriptAccessClipboard", false).toBool());
|
ui->jscanAccessClipboard->setChecked(settings.value("allowJavaScriptAccessClipboard", false).toBool());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
@ -45,6 +49,10 @@ void JsOptions::accept()
|
|||||||
settings.beginGroup("Web-Browser-Settings");
|
settings.beginGroup("Web-Browser-Settings");
|
||||||
settings.setValue("allowJavaScriptCloseWindow", ui->jscanCloseWindow->isChecked());
|
settings.setValue("allowJavaScriptCloseWindow", ui->jscanCloseWindow->isChecked());
|
||||||
settings.setValue("allowJavaScriptOpenWindow", ui->jscanOpenWindow->isChecked());
|
settings.setValue("allowJavaScriptOpenWindow", ui->jscanOpenWindow->isChecked());
|
||||||
|
settings.setValue("allowJavaScriptGeometryChange", ui->jscanChangeSize->isChecked());
|
||||||
|
settings.setValue("allowJavaScriptHideMenuBar", ui->jscanHideMenu->isChecked());
|
||||||
|
settings.setValue("allowJavaScriptHideStatusBar", ui->jscanHideStatus->isChecked());
|
||||||
|
settings.setValue("allowJavaScriptHideToolBar", ui->jscanHideTool->isChecked());
|
||||||
settings.setValue("allowJavaScriptAccessClipboard", ui->jscanAccessClipboard->isChecked());
|
settings.setValue("allowJavaScriptAccessClipboard", ui->jscanAccessClipboard->isChecked());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>302</width>
|
<width>302</width>
|
||||||
<height>126</height>
|
<height>226</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -46,6 +46,34 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="jscanChangeSize">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow JavaScript to change window size</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="jscanHideMenu">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow JavaScript to hide menu bar</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="jscanHideStatus">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow JavaScript to hide status bar</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="jscanHideTool">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow JavaScript to hide tool bar</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="jscanAccessClipboard">
|
<widget class="QCheckBox" name="jscanAccessClipboard">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
Reference in New Issue
Block a user