Closed
Bug 594797
Opened 15 years ago
Closed 7 years ago
History Sidebar not available in Popup generated Window - Error: gHistoryTree.load is not a function
Categories
(Firefox :: Bookmarks & History, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: ar.ghods, Unassigned)
References
(Blocks 1 open bug, )
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 (.NET CLR 3.5.30729)
When a popup window will open using javascript, the sidevar won't open on the window!
This function will open a resized(400x500) popup window but on this window sidebar cannot open!
///////////////////////////////////////
function popup(url)
{
newwindow=window.open(url,'name','height=400,width=500,toolbar=yes,sidebar=yes');
if (window.focus) {newwindow.focus()}
}
///////////////////////////////////////
when I triy to open history this error will be appeared:
"Error: gHistoryTree.load is not a function
Source File: chrome://browser/content/places/history-panel.js
Line: 81"
This bug exists on all versions include firefox 4
Reproducible: Always
Actual Results:
when try to open sidebar on popup window
![]() |
||
Comment 1•15 years ago
|
||
I can reproduce on Trunk and (at least) Fx 3.6 Branch.
On Opening Error Console spews:
Error: gHistoryTree.load is not a function
Source: chrome://browser/content/places/history-panel.js
Line: 81
On Closing of that Popup Windows:
----------
Error: window.top.XULBrowserWindow is null
Source: chrome://browser/content/bookmarks/sidebarUtils.js
Line: 96
Trying this on the Bookmark Sidebar does not generate Errors.
But this is just cosmetic as Sidebars are not supposed to work in Popup-Windows anyways, no?
Severity: normal → minor
Status: UNCONFIRMED → NEW
Component: General → Bookmarks & History
Ever confirmed: true
OS: Windows Vista → Windows XP
QA Contact: general → bookmarks
Summary: Sidebar cannot open on resized popup window! → History Sidebar not available in Popup generated Window - Error: gHistoryTree.load is not a function
Version: unspecified → Trunk
(In reply to comment #1)
> I can reproduce on Trunk and (at least) Fx 3.6 Branch.
> On Opening Error Console spews:
> Error: gHistoryTree.load is not a function
> Source: chrome://browser/content/places/history-panel.js
> Line: 81
>
> On Closing of that Popup Windows:
> ----------
> Error: window.top.XULBrowserWindow is null
> Source: chrome://browser/content/bookmarks/sidebarUtils.js
> Line: 96
>
> Trying this on the Bookmark Sidebar does not generate Errors.
>
> But this is just cosmetic as Sidebars are not supposed to work in Popup-Windows
> anyways, no?
Absolutely!
So, is there anyway get sidebar to work on popup window?!
All-in-sidebar extension also has problem with this!
I have found the solution!
after opening the popup window I execute the code:
////////////////////////////////////
var sidebarBox = document.getElementById("sidebar-box");
var sidebarSplitter = document.getElementById("sidebar-splitter");
sidebarBox.className = "";
sidebarSplitter.className = "";
///////////////////////////////////
It can display the sidebar(I don't know why class name cause this problem!)
But the hidden attribute of sidebar box object is always set to false, so the sidebar is always open by default!
Comment 4•7 years ago
|
||
Legacy add-ons are no longer supported, and the sidebar feature isn't supported in the Web facing window.open API.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•