Bug 336273: add basic preferences panel for safe browsing, patch by Ryan Flint, r=gavin/mconnor/ben

This commit is contained in:
gavin%gavinsharp.com 2006-05-12 22:17:47 +00:00
Родитель 670272b4c3
Коммит d1eebcf98c
2 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -95,6 +95,11 @@
<preference id="security.disable_button.openDeviceManager"
name="security.disable_button.openDeviceManager"
type="bool"/>
#ifdef MOZ_SAFE_BROWSING
<preference id="browser.safebrowsing.enabled"
name="browser.safebrowsing.enabled"
type="bool"/>
#endif
</preferences>
<script type="application/x-javascript" src="chrome://browser/content/preferences/advanced.js"/>
@ -105,6 +110,9 @@
<tab label="&generalTab.label;" helpTopic="prefs-advanced-general"/>
<tab label="&updateTab.label;" helpTopic="prefs-advanced-update"/>
<tab label="&securityTab.label;" helpTopic="prefs-advanced-security"/>
#ifdef MOZ_SAFE_BROWSING
<tab label="&safeBrowsingTab.label;"/>
#endif
</tabs>
<tabpanels flex="1">
<tabpanel orient="vertical">
@ -244,6 +252,16 @@
#endif
</groupbox>
</tabpanel>
#ifdef MOZ_SAFE_BROWSING
<tabpanel orient="vertical">
<label id="safe-pref">&safeBrowsing.label;</label>
<checkbox id="safe-active"
class="indent"
label="&safeBrowsingEnable.label;"
accesskey="&safeBrowsingEnable.accesskey;"
preference="browser.safebrowsing.enabled"/>
</tabpanel>
#endif
</tabpanels>
</tabbox>
</prefpane>

Просмотреть файл

@ -59,3 +59,7 @@
<!ENTITY showLanguages.label "Edit Languages...">
<!ENTITY showLanguages.accesskey "L">
<!ENTITY safeBrowsingTab.label "Safe Browsing">
<!ENTITY safeBrowsing.label "While I'm browsing the internet:">
<!ENTITY safeBrowsingEnable.label "Check to see if the site I'm visiting might be a scam">
<!ENTITY safeBrowsingEnable.accesskey "o">