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)
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.6
People
(Reporter: stefanh, Assigned: stefanh)
Details
Attachments
(1 file)
|
915 bytes,
patch
|
mnyromyr
:
review+
|
Details | Diff | Splinter Review |
Error: getBrowser() is null
Source File: chrome://communicator/content/bookmarks/browser-places.js
Line: 553
| Assignee | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
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+
| Assignee | ||
Comment 3•15 years ago
|
||
Landed with cached browser: http://hg.mozilla.org/comm-central/rev/8ccfe1db4423
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.
Description
•