mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
bce1b3b905
114268 - unnecessarily setting localname attribute on all pref-based elements when loading pref panels. r=ben sr=hewitt
131 lines
5.3 KiB
XML
131 lines
5.3 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
The contents of this file are subject to the Netscape Public
|
|
License Version 1.1 (the "License"); you may not use this file
|
|
except in compliance with the License. You may obtain a copy of
|
|
the License at http://www.mozilla.org/NPL/
|
|
|
|
Software distributed under the License is distributed on an "AS
|
|
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
implied. See the License for the specific language governing
|
|
rights and limitations under the License.
|
|
|
|
The Original Code is Mozilla Communicator client code, released
|
|
March 31, 1998.
|
|
|
|
The Initial Developer of the Original Code is Netscape
|
|
Communications Corporation. Portions created by Netscape are
|
|
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
Rights Reserved.
|
|
|
|
Contributor(s):
|
|
Blake Ross <blakeross@telocity.com>
|
|
Diego Biurrun <diego@biurrun.de>
|
|
-->
|
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://communicator/skin/prefpanels.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
|
%brandDTD;
|
|
<!ENTITY % prefSmartBrowsingDTD SYSTEM "chrome://communicator/locale/pref/pref-smart_browsing.dtd" >
|
|
%prefSmartBrowsingDTD;
|
|
]>
|
|
|
|
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
onload="parent.initPanel('chrome://communicator/content/pref/pref-smart_browsing.xul');"
|
|
headertitle="&lHeader;">
|
|
|
|
<stringbundle id="bundle_region"
|
|
src="chrome://global-region/locale/region.properties"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-smart_browsing.js"/>
|
|
|
|
<script type="application/x-javascript">
|
|
<![CDATA[
|
|
|
|
var _elementIDs = ["browserRelatedDisabledForDomains", "addDomain",
|
|
"browserGoBrowsingEnabled", "browserAutoCompleteEnabled",
|
|
"browserUrlbarAutoFill", "browserUrlbarShowPopup", "browserUrlbarShowSearch"];
|
|
|
|
]]>
|
|
</script>
|
|
|
|
<groupbox flex="1">
|
|
<caption label="&whatsRelated.label;"/>
|
|
|
|
<description id="doNotAcceptText">&doNotDecp.label;</description>
|
|
<separator class="thin"/>
|
|
<grid flex="1">
|
|
<columns>
|
|
<column flex="5"/>
|
|
<column/>
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<hbox align="center">
|
|
<label id="domainText" value="&domain.label;" accesskey="&domain.accesskey;" control="addDomain"/>
|
|
<textbox id="addDomain" flex="1" oninput="doButtonEnabling();" preftype="bool"
|
|
prefstring="pref.browser.smartbrowsing.disable_textbox.add" prefattribute="disabled"/>
|
|
</hbox>
|
|
<vbox align="center">
|
|
<button disabled="true" id="addDomainButton" label="&addDomain.label;" accesskey="&addDomain.accesskey;"
|
|
oncommand="addDomain();" prefstring="pref.browser.smartbrowsing.disable_button.add"/>
|
|
</vbox>
|
|
</row>
|
|
<separator class="thin"/>
|
|
<row flex="1">
|
|
<tree id="disabledDomains" multiple="true" onkeyup="treeHandleEvent(event)" style="height: 0px; width: 0px;" flex="1">
|
|
<treecolgroup>
|
|
<treecol flex="1"/>
|
|
</treecolgroup>
|
|
<treechildren id="disabledKids" flex="1"/>
|
|
</tree>
|
|
<vbox align="center">
|
|
<button id="removeDomain" label="&removeDomain.label;" accesskey="&removeDomain.accesskey;"
|
|
oncommand="removeDomain();" prefstring="pref.browser.smartbrowsing.disable_button.remove"/>
|
|
</vbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<data id="browserRelatedDisabledForDomains" preftype="string"
|
|
prefstring="browser.related.disabledForDomains" prefattribute="value" wsm_attributes="value"/>
|
|
|
|
</groupbox>
|
|
|
|
<groupbox>
|
|
<caption label="&internetKeywordsHeader.label;"/>
|
|
|
|
<description>&internetKeywordsDescription.label;</description>
|
|
|
|
<hbox align="center">
|
|
<checkbox id="browserGoBrowsingEnabled" label="&keywordsEnabled.label;" accesskey="&keywordsEnabled.accesskey;"
|
|
prefstring="keyword.enabled"/>
|
|
<spacer flex="1"/>
|
|
<button label="&moreInformation.label;" accesskey="&moreInformation.accesskey;" oncommand="moreInfo();"
|
|
id="moreInformationButton"
|
|
prefstring="pref.browser.smartbrowsing.disable_button.more_info"/>
|
|
</hbox>
|
|
|
|
</groupbox>
|
|
|
|
<groupbox>
|
|
<caption label="&autoCompleteHeader.label;"/>
|
|
<hbox align="center">
|
|
<checkbox id="browserAutoCompleteEnabled" label="&autoCompleteEnabled.label;"
|
|
accesskey="&autoCompleteEnabled.accesskey;"
|
|
prefstring="browser.urlbar.autocomplete.enabled"
|
|
oncommand="toggleAutoCompleteAdvancedButton()" flex="1"/>
|
|
<button label="&autoCompleteAdvanced.label;" oncommand="showACAdvanced()" id="autoCompleteAdvancedButton"/>
|
|
<data id="browserUrlbarAutoFill" preftype="bool" prefattribute="value"
|
|
prefstring="browser.urlbar.autoFill"/>"
|
|
<data id="browserUrlbarShowPopup" preftype="bool" prefattribute="value"
|
|
prefstring="browser.urlbar.showPopup"/>"
|
|
<data id="browserUrlbarShowSearch" preftype="bool" prefattribute="value"
|
|
prefstring="browser.urlbar.showSearch"/>"
|
|
</hbox>
|
|
</groupbox>
|
|
</page>
|