Closed
Bug 57506
Opened 25 years ago
Closed 24 years ago
Javascript opening new window causes crash
Categories
(SeaMonkey :: UI Design, defect, P3)
Tracking
(Not tracked)
VERIFIED
WORKSFORME
mozilla0.9.2
People
(Reporter: reinout, Assigned: bugzilla)
Details
(Keywords: crash)
Attachments
(2 files)
The CD-ROM that comes with the Dutch PC-Active magazine has a HTML/javascript
interface which is loaded with the window.open() function.
Mozilla draws a 640x480 window and then crashes. in the console it says:
line 0: uncaught exception:[Exception... "Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIRDFService.GetDataSource]" nsresult:
"0x80004003 (NS_ERROR_INVALID_POINTER)| location: "JS frame ::
chrome://communicator/content/sidebar/sidebarOverlay.js :: sidebar_overlay_init
:: line 536"data: no]
in SetSecurityButton
GpiDeleteSetId failed, error = 0x2033
GpiDeleteSetId failed, error=0x2033
---
in POPUPLOG.OS2:
GFX_OS2.DLL 0001:00006b57
I am not sure if this bug is OS/2 specific or not.
Tested on Warp 4/FP14, SDD b32
Comment 1•25 years ago
|
||
Have you got any Javascript or Html that crashes Mozilla?
If so, can you attach it.
Comment 2•25 years ago
|
||
Since the error is in sidebarOverlay.js, reassigning to Sidebar component.
But I'm afraid this bug will have to be closed unless there is a way
we can reproduce the bug; for example, an attached testcase...
Assignee: rogerl → matt
Component: Javascript Engine → Sidebar
QA Contact: pschwartau → shrir
Comment 3•25 years ago
|
||
For reference, here is the sidebar_overlay_init() function:
//////////////////////////////////////////////////////////////
// Sidebar Init
//////////////////////////////////////////////////////////////
function sidebar_overlay_init() {
sidebarObj.panels = new sbPanelList('sidebar-panels');
sidebarObj.datasource_uri = get_sidebar_datasource_uri();
sidebarObj.resource = 'urn:sidebar:current-panel-list';
sidebarObj.master_datasources = "";
sidebarObj.master_datasources = get_remote_datasource_url();
sidebarObj.master_datasources += "
chrome://communicator/content/sidebar/local-panels.rdf";
sidebarObj.master_resource = 'urn:sidebar:master-panel-list';
sidebarObj.component = document.firstChild.getAttribute('windowtype');
debug("sidebarObj.component is " + sidebarObj.component);
// Initialize the display
var sidebar_element = document.getElementById('sidebar-box');
var sidebar_menuitem = document.getElementById('sidebar-menu');
if (sidebar_is_hidden()) {
if (sidebar_menuitem) {
sidebar_menuitem.setAttribute('checked', 'false');
}
} else {
if (sidebar_menuitem) {
sidebar_menuitem.setAttribute('checked', 'true');
}
if (sidebarObj.never_built) {
sidebarObj.never_built = false;
debug("sidebar = " + sidebarObj);
debug("sidebarObj.resource = " + sidebarObj.resource);
debug("sidebarObj.datasource_uri = " + sidebarObj.datasource_uri);
// Show the header for the panels area. Use a splitter if there
// is stuff over the panels area.
var sidebar_panels_splitter =
document.getElementById('sidebar-panels-splitter');
if (sidebar_element.firstChild != sidebar_panels_splitter) {
debug("Showing the panels splitter");
sidebar_panels_splitter.removeAttribute('hidden');
}
// Add the user's current panel choices to the template builder,
// which will aggregate it with the other datasources that describe
// the individual panel's title, customize URL, and content URL.
var panels = document.getElementById('sidebar-panels');
panels.database.AddDataSource(RDF.GetDataSource(sidebarObj.datasource_uri));
debug("Adding observer to database.");
panels.database.AddObserver(panel_observer);
// XXX This is a hack to force re-display
panels.setAttribute('ref', sidebarObj.resource);
}
if (sidebar_is_collapsed()) {
sidebarObj.collapsed = true;
} else {
sidebarObj.collapsed = false;
}
sidebar_open_default_panel(100, 0);
}
}
Comment 4•25 years ago
|
||
OOPS - the reported error was
GpiDeleteSetId failed, error = 0x2033
LXR shows this function in two places:
gfx/src/os2/nsDrawingSurfaceOS2.cpp
gfx/src/os2/nsFontMetricsOS2.cpp
Reassigning to XP Apps: GUI Features for further triage.
reinout@cs.vu.nl, is there any other way we can reproduce the bug?
Otherwise it may have to be closed - thanks.
Assignee: matt → ben
Component: Sidebar → XP Apps: GUI Features
QA Contact: shrir → sairuh
| Reporter | ||
Comment 5•25 years ago
|
||
| Reporter | ||
Comment 6•25 years ago
|
||
| Reporter | ||
Comment 7•25 years ago
|
||
I attached the "offending" HTML source. Sorry it had to take this long.
Comment 8•25 years ago
|
||
hi Michael, is this something you're able to repro? [i don't have an os/2 box to
test this on...] thx!
Summary: Javascrip opening new window causes crash → Javascript opening new window causes crash
Comment 9•25 years ago
|
||
This crashed for me XP.
Save the first attachment as first.html
Save the second attachment as frame.html, rand.html AND hoofd.html
Put them all in the same directory.
Open first.html
Trap.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: OS/2 → All
Comment 10•25 years ago
|
||
Netscape nav triage team: per Alec Flett's pre-triage recommendation, this
bug is nsbeta1-.
Keywords: nsbeta1-
Comment 11•25 years ago
|
||
confirmed crash on win 98 build 2001021508 (m.8)
Comment 12•25 years ago
|
||
Marking nsbeta1- bugs as future to get off the radar
Target Milestone: --- → Future
| Assignee | ||
Comment 13•25 years ago
|
||
Still crashing? Anyone got a stack trace, if so?
Assignee: ben → blakeross
Severity: major → critical
Target Milestone: Future → mozilla0.9.2
| Assignee | ||
Comment 14•24 years ago
|
||
No one answered, and I can't reproduce from what's given, so...
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Comment 15•24 years ago
|
||
i don't crash either --vrfy wfm using 2001.05.31.0x comm bits on linux, mac and
winnt.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•