diff --git a/mozilla/embedding/config/xulprefs.mn b/mozilla/embedding/config/xulprefs.mn
index f4a394b421a..fd0b1144a82 100644
--- a/mozilla/embedding/config/xulprefs.mn
+++ b/mozilla/embedding/config/xulprefs.mn
@@ -98,9 +98,5 @@ locale/XXXX/communicator/pref/preftree.dtd, XXXX/locale/XXXX/communicator/pref/p
locale/XXXX/communicator/pref/pref.dtd, XXXX/locale/XXXX/communicator/pref/pref.dtd
locale/XXXX/communicator/pref/pref-mousewheel.dtd, XXXX/locale/XXXX/communicator/pref/pref-mousewheel.dtd
locale/XXXX/communicator/pref/pref-winhooks.dtd, XXXX/locale/XXXX/communicator/pref/pref-winhooks.dtd
-locale/XXXX/communicator/pref/autocomplete-autofill-on.gif, XXXX/locale/XXXX/communicator/pref/autocomplete-autofill-on.gif
-locale/XXXX/communicator/pref/autocomplete-autofill-off.gif, XXXX/locale/XXXX/communicator/pref/autocomplete-autofill-off.gif
-locale/XXXX/communicator/pref/autocomplete-showpopup.gif, XXXX/locale/XXXX/communicator/pref/autocomplete-showpopup.gif
-locale/XXXX/communicator/pref/autocomplete-showsearch.gif, XXXX/locale/XXXX/communicator/pref/autocomplete-showsearch.gif
locale/XXXX/global/dialog.properties, XXXX/locale/XXXX/global/dialog.properties.
diff --git a/mozilla/suite/browser/browser-prefs.js b/mozilla/suite/browser/browser-prefs.js
index d828b486e72..10962656ca5 100644
--- a/mozilla/suite/browser/browser-prefs.js
+++ b/mozilla/suite/browser/browser-prefs.js
@@ -160,7 +160,6 @@ pref("browser.translation.serviceDomain", "chrome://navigator-region/locale/regi
pref("browser.related.provider", "http://www-rl.netscape.com/wtgn?");
pref("browser.related.disabledForDomains", "");
pref("keyword.enabled", true);
-pref("keyword.moreInfoURL", "chrome://branding/locale/brand.properties");
//Internet Search
pref("browser.search.defaultenginename", "chrome://communicator-region/locale/region.properties");
diff --git a/mozilla/suite/common/jar.mn b/mozilla/suite/common/jar.mn
index 55a51bc5515..7664cded632 100644
--- a/mozilla/suite/common/jar.mn
+++ b/mozilla/suite/common/jar.mn
@@ -180,6 +180,8 @@ comm.jar:
content/communicator/pref/pref-languages.js (pref/pref-languages.js)
content/communicator/pref/pref-languages.xul (pref/pref-languages.xul)
content/communicator/pref/pref-languages-add.xul (pref/pref-languages-add.xul)
+ content/communicator/pref/pref-locationbar.js (pref/pref-locationbar.js)
+ content/communicator/pref/pref-locationbar.xul (pref/pref-locationbar.xul)
content/communicator/pref/pref-mousewheel.js (pref/pref-mousewheel.js)
content/communicator/pref/pref-mousewheel.xul (pref/pref-mousewheel.xul)
content/communicator/pref/pref-navigator.js (pref/pref-navigator.js)
@@ -197,9 +199,6 @@ comm.jar:
content/communicator/pref/pref-search.xul (pref/pref-search.xul)
content/communicator/pref/pref-security.js (pref/pref-security.js)
content/communicator/pref/pref-security.xul (pref/pref-security.xul)
- content/communicator/pref/pref-smart_browsing.js (pref/pref-smart_browsing.js)
- content/communicator/pref/pref-smart_browsing.xul (pref/pref-smart_browsing.xul)
- content/communicator/pref/pref-smart_browsing-ac.xul (pref/pref-smart_browsing-ac.xul)
content/communicator/pref/pref-smartupdate.js (pref/pref-smartupdate.js)
content/communicator/pref/pref-smartupdate.xul (pref/pref-smartupdate.xul)
content/communicator/pref/pref-tabs.xul (pref/pref-tabs.xul)
diff --git a/mozilla/suite/common/pref/pref-locationbar.js b/mozilla/suite/common/pref/pref-locationbar.js
index 17a75ab5cdd..f5d1e2da8bc 100644
--- a/mozilla/suite/common/pref/pref-locationbar.js
+++ b/mozilla/suite/common/pref/pref-locationbar.js
@@ -22,6 +22,7 @@
* Contributor(s):
* Diego Biurrun
* Ian Neal
+ * Stefan Hermes
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -37,48 +38,53 @@
*
* ***** END LICENSE BLOCK ***** */
-function moreInfo()
+function Startup()
{
- var browserURL = null;
- try {
- browserURL = parent.hPrefWindow.getPref("string", "browser.chromeURL");
- } catch(e) {
+ // On systems that has the file view component, autoFill and showPopup will
+ // return results from local browsing "history", even if autocomplete.enabled
+ // is turned off, so we'll need to remove the dependent look in the ui.
+
+ if ("@mozilla.org/autocomplete/search;1?name=file" in Components.classes)
+ {
+ // We indent the checkboxes with the class attribute set to "indent", so
+ // just remove the attribute.
+ document.getElementById("autoFill").removeAttribute("class");
+ document.getElementById("showPopup").removeAttribute("class");
}
- if (browserURL == null)
- browserURL = "chrome://navigator/content/navigator.xul";
- var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
- .getService(Components.interfaces.nsIURLFormatter);
- window.openDialog(browserURL, "_blank", "chrome,all,dialog=no",
- formatter.formatURLPref("keyword.moreInfoURL"));
-}
-
-function showACAdvanced()
-{
- window.openDialog("chrome://communicator/content/pref/pref-smart_browsing-ac.xul", "",
- "modal=yes,chrome,resizable=no",
- document.getElementById("browserUrlbarAutoFill").getAttribute("value"),
- document.getElementById("browserUrlbarShowPopup").getAttribute("value"),
- document.getElementById("browserUrlbarShowSearch").getAttribute("value"),
- document.getElementById("browserUrlbarMatchOnlyTyped").getAttribute("value"),
- document.getElementById("browserUrlbarAutoFill").getAttribute("disabled"),
- document.getElementById("browserUrlbarShowPopup").getAttribute("disabled"),
- document.getElementById("browserUrlbarShowSearch").getAttribute("disabled"),
- document.getElementById("browserUrlbarMatchOnlyTyped").getAttribute("disabled"));
+ updateDependent(document.getElementById("browser.urlbar.autocomplete.enabled").value);
}
-function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch, aAutoType)
+function updateDependent(aValue)
{
- document.getElementById("browserUrlbarAutoFill").setAttribute("value", aAutoFill);
- document.getElementById("browserUrlbarShowPopup").setAttribute("value", aShowPopup);
- document.getElementById("browserUrlbarShowSearch").setAttribute("value", aShowSearch);
- document.getElementById("browserUrlbarMatchOnlyTyped").setAttribute("value", aAutoType);
+ // The matchOnlyTyped checkbox always depend on autocomplete.enabled.
+ updateMatchOnlyTyped();
+
+ // If autoFill has a class attribute, we don't have the file view component.
+ // We then need to update autoFill and showPopup.
+ if (document.getElementById("autoFill").hasAttribute("class"))
+ {
+ toggleCheckbox("autoFill", aValue);
+ toggleCheckbox("showPopup", aValue);
+ }
}
-
-function toggleAutoCompleteAdvancedButton()
+function toggleCheckbox(aCheckbox, aPrefValue)
{
- var browserAutoCompleteEnabled = document.getElementById("browserAutoCompleteEnabled");
- var autoCompleteAdvancedButton = document.getElementById("autoCompleteAdvancedButton");
- autoCompleteAdvancedButton.disabled = !browserAutoCompleteEnabled.checked;
+ if (!document.getElementById("browser.urlbar." + aCheckbox).locked)
+ document.getElementById(aCheckbox).disabled = !aPrefValue;
+}
+
+function updateMatchOnlyTyped()
+{
+ if (!document.getElementById("browser.urlbar.matchOnlyTyped").locked)
+ {
+ var autoCompletePref = document.getElementById("browser.urlbar.autocomplete.enabled");
+ var autoFillPref = document.getElementById("browser.urlbar.autoFill");
+ var showPopupPref = document.getElementById("browser.urlbar.showPopup");
+ // matchOnlyTyped doesn't makes sense if both autoFill and showPopup prefs
+ // are false or if autocomplete is turned off.
+ document.getElementById("matchOnlyTyped").disabled =
+ (!autoFillPref.value && !showPopupPref.value) || !autoCompletePref.value;
+ }
}
diff --git a/mozilla/suite/common/pref/pref-locationbar.xul b/mozilla/suite/common/pref/pref-locationbar.xul
index ad6a228e553..e55c642cfd5 100644
--- a/mozilla/suite/common/pref/pref-locationbar.xul
+++ b/mozilla/suite/common/pref/pref-locationbar.xul
@@ -23,6 +23,7 @@
Contributor(s):
Blake Ross
Diego Biurrun
+ Stefan Hermes
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -41,71 +42,82 @@
-
-%brandDTD;
-
-%prefSmartBrowsingDTD;
-]>
+
-
+
-
+
-
-
-
-
+
+
+
+
+
diff --git a/mozilla/suite/common/pref/pref-smart_browsing-ac.xul b/mozilla/suite/common/pref/pref-smart_browsing-ac.xul
deleted file mode 100644
index 84ef097fc00..00000000000
--- a/mozilla/suite/common/pref/pref-smart_browsing-ac.xul
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/mozilla/suite/common/pref/pref-smart_browsing.js b/mozilla/suite/common/pref/pref-smart_browsing.js
deleted file mode 100644
index 17a75ab5cdd..00000000000
--- a/mozilla/suite/common/pref/pref-smart_browsing.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla 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/MPL/
- *
- * 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
- * August 15, 2001.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corp.
- * Portions created by the Initial Developer are Copyright (C) 2001
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Diego Biurrun
- * Ian Neal
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either of the GNU General Public License Version 2 or later (the "GPL"),
- * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-function moreInfo()
-{
- var browserURL = null;
- try {
- browserURL = parent.hPrefWindow.getPref("string", "browser.chromeURL");
- } catch(e) {
- }
- if (browserURL == null)
- browserURL = "chrome://navigator/content/navigator.xul";
-
- var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
- .getService(Components.interfaces.nsIURLFormatter);
- window.openDialog(browserURL, "_blank", "chrome,all,dialog=no",
- formatter.formatURLPref("keyword.moreInfoURL"));
-}
-
-function showACAdvanced()
-{
- window.openDialog("chrome://communicator/content/pref/pref-smart_browsing-ac.xul", "",
- "modal=yes,chrome,resizable=no",
- document.getElementById("browserUrlbarAutoFill").getAttribute("value"),
- document.getElementById("browserUrlbarShowPopup").getAttribute("value"),
- document.getElementById("browserUrlbarShowSearch").getAttribute("value"),
- document.getElementById("browserUrlbarMatchOnlyTyped").getAttribute("value"),
- document.getElementById("browserUrlbarAutoFill").getAttribute("disabled"),
- document.getElementById("browserUrlbarShowPopup").getAttribute("disabled"),
- document.getElementById("browserUrlbarShowSearch").getAttribute("disabled"),
- document.getElementById("browserUrlbarMatchOnlyTyped").getAttribute("disabled"));
-}
-
-function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch, aAutoType)
-{
- document.getElementById("browserUrlbarAutoFill").setAttribute("value", aAutoFill);
- document.getElementById("browserUrlbarShowPopup").setAttribute("value", aShowPopup);
- document.getElementById("browserUrlbarShowSearch").setAttribute("value", aShowSearch);
- document.getElementById("browserUrlbarMatchOnlyTyped").setAttribute("value", aAutoType);
-}
-
-
-function toggleAutoCompleteAdvancedButton()
-{
- var browserAutoCompleteEnabled = document.getElementById("browserAutoCompleteEnabled");
- var autoCompleteAdvancedButton = document.getElementById("autoCompleteAdvancedButton");
- autoCompleteAdvancedButton.disabled = !browserAutoCompleteEnabled.checked;
-}
diff --git a/mozilla/suite/common/pref/pref-smart_browsing.xul b/mozilla/suite/common/pref/pref-smart_browsing.xul
deleted file mode 100644
index ad6a228e553..00000000000
--- a/mozilla/suite/common/pref/pref-smart_browsing.xul
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-
-
-
-
-%brandDTD;
-
-%prefSmartBrowsingDTD;
-]>
-
-
-
-
-
-
-
-
-
This section describes how to use the Smart Browsing preferences panel. If
+
This section describes how to use the Location Bar preferences panel. If
you're not already viewing it, follow these steps:
Open the &brandShortName;Edit menu and choose Preferences.
-
Under the Browser category, click Smart Browsing. (If no subcategories
+
Under the Browser category, click Location Bar. (If no subcategories
are visible, double-click Browser to expand the list.)
-
The Smart Browsing preferences panel allows you to better browse web pages
- using Internet Keywords, Location Bar Autocomplete and Domain Guessing.
+
The Location Bar Preferences panel lets you fine-tune the behavior of the
+ Location Bar.
-
Internet Keywords:
+
Autocomplete:
-
Enable Internet Keywords: Select this to enable fast
- access to services such as stock quotes, search, and other information
- from the Location bar.
-
More Information: Click this to learn more about
- using Internet Keywords.
-
-
-
Location Bar
- Autocomplete:
-
-
Automatically complete text typed into Location bar:
- Select this to automatically complete text you previously entered into
- the Location bar.
-
Advanced: Click this and select one or more of the
- following options:
+
Autocomplete from your browsing history as you type:
+ Select this to let &brandShortName; automatically show suggestions from
+ your browsing history when you type in the Location Bar.
-
Autocomplete best match as you type: As you
+
Match only website's you've typed
+ previously: Shows only websites that you've typed in
+ the Location Bar and not sites that were opened in other ways, such
+ as clicking a link on a web page.
+
Automatically prefill the best match: As you
type in the Location Bar, &brandShortName; will automatically
complete your web address using the visited website it most closely
- matches.
+ matches. Note: Having this
+ option on will prefill local addresses (like paths to files on your
+ hard drive) even if you have turned off Autocomplete from your
+ browsing history as you type.
Show list of matching results: As you type in
the Location Bar, &brandShortName; will show a drop-down list of
- matching visited web addresses.
-
Show internet search engine: Shows a drop-down
- list item allowing you to search the default search engine for
- words you enter.
-
Match only website you've typed previously:
- Shows only websites that you've typed in the Location Bar and
- not sites that were opened in other ways, such as clicking a link
- on a web page.
-
-
+ matching visited web addresses.
+ Note: If you have turned off
+ Autocomplete from your browsing history as you type
+ matching results from locations on your hard drive will still be
+ shown in the drop-down list.
+
+
+
+
Internet Search Engine:
+
+
Show default search engine: Shows a drop-down list item,
+ allowing you to search with the default search engine for words you
+ enter.
+
+
+
Unknown Locations
+
+
Add www. and .com to the location if a web page
+ is not found: Select this if you want &brandShortName; to
+ automatically add www. to the beginning and .com to
+ the end of a web page location that can't be found. For more
+ detailed information about this feature, see the online document
+
+ Domain Guessing.
+
Perform a web search when entered text is not a web
+ location: Select this to let &brandShortName; automatically
+ search the web for text entered in the Location Bar. If the text
+ you've typed is not a web location, &brandShortName; will do a web
+ search when you press Enter
+ Return in the Location Bar. See the online
+ document
+
+ Internet Keywords for a more technical description about this
+ feature. Note: The search engine used can not be
+ changed by the Internet Search
+ Preferences.
-
Domain Guessing: Select this if you want
- &brandShortName; to automatically add www. and .com to a
- web page location that can't be found. For more detailed information
- about the Domain Guessing feature, see the online document
- Domain
- Guessing.
The default search engine you choose in the
+ Internet
+ Search Preferences is used. Search results for baby doll
+ appear in both the browser window and in Sidebar. Click the links to
+ visit web pages about baby dolls.
@@ -417,8 +416,15 @@
tab until you do a new search. You don't have to click the Back button
to retrieve the search results.
Note: In the Unknown Locations section of the
+ Location Bar
+ Preferences, you can set up the Location Bar so a search is automatically
+ performed if the text you have typed is not a web location. Typing a word in
+ the Location Bar and pressing Enter
+ Return will then perform a search. For a more technical description of
+ this feature, see the online document
+
+ Internet Keywords.
Internet Keywords work with the Location Bar to help you quickly find
- specific types of information. There are several ways to use Internet
- Keywords:
-
-
-
Type a specific product, trademark, or company name and press
- ReturnEnter, to go
- directly to a company's website.
-
Type certain verbs, such as shop or quote,
- followed by the word you want to look up, to get specific information. For
- instance, shop pets takes you to a page with links to online
- pet stores.
-
Type the name of a city or town followed by certain words such as
- movies or restaurants, for local information. For
- instance, type san francisco restaurants.
-
-
-
Important: To use Internet Keywords, you must press
- ReturnEnter
- on your keyboard instead of clicking the Search button.
- Pressing ReturnEnter
- activates the Internet Keyword feature; clicking Search initiates a
- search.
-
-
To see the difference, try this:
-
-
-
Type apple imac into the Location Bar and press
- ReturnEnter. Apple
- Computer's iMac Web page appears.
-
Now type apple imac into the Location Bar and click Search.
- You see a list of links related to Apple Computer's iMac models.
-
-
-
If typing Internet Keywords into the Location Bar is not working for you,
- check your
- Smart Browsing
- preferences to be sure the Internet Keywords feature is enabled.
-
-
Quick Stock Quotes
-
-
To see a recent stock quote for a company, type quote followed
- by the company's stock ticker symbol, and press
- ReturnEnter.
-
-
If you don't know a company's stock ticker symbol, type the
- company's name. The quote page will list all companies with similar
- names, and you can choose the one for which you want a quote.
To find text within the page you are currently viewing in the browser:
@@ -1217,8 +1168,8 @@
Finding a &brandShortName; version in your
own language
-
If you're looking for a version of &brandShortName; in a language other than
- American English, you can download it from the
+
If you're looking for a version of &brandShortName; in a language other
+ than American English, you can download it from the
SeaMonkey
Project Releases page.
@@ -1475,7 +1426,7 @@
In the File Bookmark dialog, look the Location field. Replace the
dummy string (e.g. ILoveMozilla) with %s.
For example, the location might become
- http://www.google.com/search?q=%s&btnI=I'mFeelingLucky.