Closed Bug 689270 Opened 15 years ago Closed 15 years ago

js error when opening the Bookmarks menu without any windows open

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.6

People

(Reporter: stefanh, Assigned: stefanh)

Details

Attachments

(1 file)

Error: getBrowser() is null Source File: chrome://communicator/content/bookmarks/browser-places.js Line: 553
Assignee: nobody → stefanh
Status: NEW → ASSIGNED
Attachment #562528 - Flags: review?(mnyromyr)
Comment on attachment 562528 [details] [diff] [review] Check for a browser > document.getElementById("Browser:BookmarkAllTabs") >- .setAttribute("disabled", getBrowser().tabs.length == 1); >+ .setAttribute("disabled", !getBrowser() || getBrowser().tabs.length == 1); r=me when caching the browser in a variable instead of calling getBrowser twice.
Attachment #562528 - Flags: review?(mnyromyr) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: