зеркало из https://github.com/mozilla/gecko-dev.git
Bug 231651 gNavigatorBundle is not defined when attempting to open empty location history in the open location dialog r=timeless sr=jag
This commit is contained in:
Родитель
04f4cdb9f8
Коммит
ddc9c1b375
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
var browser;
|
var browser;
|
||||||
var dialog = {};
|
var dialog = {};
|
||||||
|
var gNavigatorBundle;
|
||||||
var pref = null;
|
var pref = null;
|
||||||
try {
|
try {
|
||||||
pref = Components.classes["@mozilla.org/preferences-service;1"]
|
pref = Components.classes["@mozilla.org/preferences-service;1"]
|
||||||
|
@ -40,6 +41,7 @@ function onLoad()
|
||||||
dialog.openTopWindow = document.getElementById("currentWindow");
|
dialog.openTopWindow = document.getElementById("currentWindow");
|
||||||
dialog.openEditWindow = document.getElementById("editWindow");
|
dialog.openEditWindow = document.getElementById("editWindow");
|
||||||
dialog.bundle = document.getElementById("openLocationBundle");
|
dialog.bundle = document.getElementById("openLocationBundle");
|
||||||
|
gNavigatorBundle = document.getElementById("navigatorBundle");
|
||||||
|
|
||||||
if ("arguments" in window && window.arguments.length >= 1)
|
if ("arguments" in window && window.arguments.length >= 1)
|
||||||
browser = window.arguments[0];
|
browser = window.arguments[0];
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
<script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
|
<script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
|
||||||
|
|
||||||
<stringbundle id="openLocationBundle" src="chrome://communicator/locale/openLocation.properties"/>
|
<stringbundle id="openLocationBundle" src="chrome://communicator/locale/openLocation.properties"/>
|
||||||
|
<stringbundle id="navigatorBundle" src="chrome://navigator/locale/navigator.properties"/>
|
||||||
|
|
||||||
<hbox>
|
<hbox>
|
||||||
<separator orient="vertical" class="thin"/>
|
<separator orient="vertical" class="thin"/>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче