Closed
Bug 231651
Opened 21 years ago
Closed 21 years ago
gNavigatorBundle is not defined
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bugs4hj, Unassigned)
Details
Attachments
(1 file)
1.63 KB,
patch
|
timeless
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
Steps to reproduce (mozilla build 2004010708):
1) clear location bar history
- Menu/Edit/Preferences/Navigator/History/Clear Location Bar
2) use Menu/File/Open Web Location (Ctrl+Shift+L)
3) click on the drop down arrow (textfield)
Current result:
Error: gNavigatorBundle is not defined
Source File: chrome://navigator/content/sessionHistoryUI.js
Line: 139
gNavigatorBundle is defined here:
http://lxr.mozilla.org/seamonkey/source/xpfe/browser/resources/content/navigator.js#427
like this:
var gNavigatorBundle = document.getElementById("bundle_navigator");
It is used in function createUBHistoryMenu() and that is called from two
different XUL files:
http://lxr.mozilla.org/seamonkey/source/xpfe/browser/resources/content/navigator.xul#192
http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/openLocation.xul#66
like this:
var na = gNavigatorBundle.getString("nothingAvailable");
So we need to add something like this:
<stringbundle id="bundle_navigator"
src="chrome://navigator/locale/navigator.properties"/>
<script type="application/x-javascript">
<![CDATA[
var gNavigatorBundle = document.getElementById("bundle_navigator");
]]>
</script>
here:
http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/openLocation.xul#52
Assignee: general → guifeatures
Component: Browser-General → XP Apps: GUI Features
Comment 1•21 years ago
|
||
Updated•21 years ago
|
Attachment #139535 -
Flags: review?(timeless)
Attachment #139535 -
Flags: review?(timeless) → review+
Yeah, that <script> thing was stupid. I completely missed openLocation.js while
I was demontrating the powers of the mozilla MultiZilla combo. At least they
learned how to file bug reports.
Updated•21 years ago
|
Attachment #139535 -
Flags: superreview?(jag)
Comment 3•21 years ago
|
||
Comment on attachment 139535 [details] [diff] [review]
Proposed patch
sr=jag
Attachment #139535 -
Flags: superreview?(jag) → superreview+
Comment 4•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•