Open
Bug 57864
Opened 24 years ago
Updated 16 years ago
window._content insufficient for sidebar apps; need _active
Categories
(SeaMonkey :: Sidebar, defect, P3)
SeaMonkey
Sidebar
Tracking
(Not tracked)
NEW
Future
People
(Reporter: jelwell, Unassigned)
Details
(Keywords: helpwanted)
Some sidebar applications use window._content to load URLs into the Browser window. Currently window._content points to any window's content area. It is unclear whether this was by design. But Sidebar developers need a clear way to say "Load this URL in a *BROWSER* window (and open one if none are available)". Many applications that are currently written break Composer when they assign to window._content. In this case the URL is loaded into Composer's content window - losing any data that was in the Composer window. It should also be noted that Sidebar tabs are applications. They should be able to do whatever - no matter how destructive - they want; including loading into editor windows...
Comment 1•24 years ago
|
||
It seems like the current behavior of assigning to |window._content.location| is probably right, but we need a scheme, callable from a sandboxed app, to open new content in either the top-most acceptable content area for that content type, or else a new window.
Yes, we've had plans for a long time to implement a JS function, probably window._active(windowtype), to return the equivalent of window._content of the most recently active (topmost) window of type (windowtype), where windowtype is the same thing as in WindowMediator. Or at least a window._active, which assumes a browser window. From chrome, of course, you can just use the WindowMediator. It's more arcane, but it works. Sidebar panels in particular are rather aching for this. Targetting mozilla 1.0 for now and adding "helpwanted." The task is described and fairly straightforward to do, if anyone is out there and interested.
Status: NEW → ASSIGNED
Keywords: helpwanted
Summary: window._content loads into editor contents. → window._content insufficient for sidebar apps; need _active
Target Milestone: --- → mozilla1.0
Comment 4•24 years ago
|
||
>It should also be noted that Sidebar tabs are applications. They should be >able to do whatever - no matter how destructive - they want; including loading >into editor windows... I was under the impression that "normal" sidebar tabs were supposed to have only as much power as a normal webpage. Sidebar tabs that want to do extra things, like list the links on the current page, have to be installed rather than simply added to the sidebar. Cf discussion in bug 59603. I think the best solution to this bug is to fix _content to do what sidebar authors expect it to do, which is to open in a browser window (and not an editor window). According to bug 27162, that should also be the default target for sidebar links.
Comment 5•24 years ago
|
||
Does this bug lead to data loss whenever Composer is open (and the user hits a target=_content link in any sidebar), or only when the sidebar is in the Composer window?
Jesse: I haven't looked at this in a while. Memory seems to be telling me that the meaning of _content is overloaded. Composer code uses it to mean the content docshell of the composer window. Sidebar code uses it to mean the content docshell of the same window. Both are correct, but when sidebar happens in a Composer window, bad things happen. In *my* opinion the best thing to do is not have any stinking sidebars in the composer window. They don't belong there; they go in browser windows. But I think we've suggested that before, too, and got nowhere with it.
Comment 7•23 years ago
|
||
What about setting window._content to your own browser window? Can that be done?
Comment 9•23 years ago
|
||
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Updated•20 years ago
|
Product: Browser → Seamonkey
Updated•16 years ago
|
QA Contact: sujay → sidebar
Comment 10•16 years ago
|
||
This bug is being marked EXPIRED as it has seen no activity in a very long time. If you think that the issue reported might still be relevant, please test with a recent release of SeaMonkey and if the problem persists feel free to re-open the report. Thank you. http://www.seamonkey-project.org/
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → EXPIRED
Comment 11•16 years ago
|
||
This bug is being marked EXPIRED as it has seen no activity in a very long time. If you think that the issue reported might still be relevant, please test with a recent release of SeaMonkey and if the problem persists feel free to re-open the report. Thank you. http://www.seamonkey-project.org/
Comment 12•16 years ago
|
||
Bulk reopening incorrectly expired bugs - no activity does not constitute no bug - these need proper checking.
Status: RESOLVED → REOPENED
Resolution: EXPIRED → ---
Updated•16 years ago
|
Status: REOPENED → NEW
You need to log in
before you can comment on or make changes to this bug.
Description
•