Closed
Bug 44972
Opened 25 years ago
Closed 25 years ago
<A href=url target=window1 onClick=open_window1> doesn't run
Categories
(Core :: DOM: Core & HTML, defect, P1)
Tracking
()
VERIFIED
WORKSFORME
Future
People
(Reporter: cbaegert, Assigned: hjtoi-bugzilla)
References
()
Details
(Whiteboard: [nsbeta3-])
I try to open a pop-up window with Javascript, started by the onClick event on a
HTML link, and then to load an url into this window with the href & target. This
allows the link to be marked as visited (if I load the url with the window.open
function, it won't).
this function was running well with M15 !!! it's running as well with NS 4.73
and IE5
with M16, the window is opened, but the url isn't loaded into it.
Comment 1•25 years ago
|
||
Confirming bug. Reproduced on PC/Linux, build 2000070721.
M15 works fine, but M16 an the M17 nightly don't load anything into the new
window. Don't know about the right component. Here's the shell output:
Entry at index 0 is http://forum.europeanservers.net/cgi-bin/liste.eur?demo
Adding url http://forum.europeanservers.net/cgi-bin/liste.eur?demo to SH
Document: Done (1.376 secs)
*** check number of frames in content area
Document http://forum.europeanservers.net/cgi-bin/liste.eur?demo loaded
successfully
WEBSHELL- = 3
we don't handle eBorderStyle_close yet... please fix me
WEBSHELL+ = 4
WEBSHELL+ = 5
Adding url about:blank to SH
Setting content window
*** Pulling out the charset
in SetSecurityButton
JavaScript error:
line 0: uncaught exception: [Exception... "Component does not have requested
interface" code: "-2147467262" nsresult: "0x80004002 (NS_NOINTERFACE)"
location: "<unknown>"]
Adding url http://forum.europeanservers.net/cgi-bin/voir.eur?2&demo to SH
JavaScript error:
http://forum.europeanservers.net/cgi-bin/voir.eur?2&demo line 1: missing ;
before statement
Document: Done (0.347 secs)
Document http://forum.europeanservers.net/cgi-bin/voir.eur?2&demo loaded
successfully
Document: Done (0.585 secs)
Error loading URL http://forum.europeanservers.net/cgi-bin/voir.eur?2&demo
JavaScript error:
line 0: uncaught exception: [Exception... "Component does not have requested
interface" code: "-2147467262" nsresult: "0x80004002 (NS_NOINTERFACE)"
location: "<unknown>"]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•25 years ago
|
||
Browser, not Engine. Reassigning to Browser-General. Adding crash keyword.
On WinNT, I CRASH when I click on this link in the page:
"test Christophe, le 6/7/2000"
First, I get an nsDebug:Assertion messagebox saying:
ASSSERTION: You can't dereference a NULL nsCOMPtr with operator->().:
'mRawPtr !=0', file ..\..\..\..\dist\include\nsCOMPtr.h, line 649
Then I crash with the following stack trace:
nsEventStateManager::SendFocusBlur(nsEventStateManager * const 0x03bbd050,
nsIPresContext * 0x036f16b0, nsIContent * 0x03bd9c5c) line 2323 + 54 bytes
nsEventStateManager::SetContentState(nsEventStateManager * const 0x03bbd058,
nsIContent * 0x03bd9c5c, int 2) line 2189
nsHTMLInputElement::SetFocus(nsHTMLInputElement * const 0x03bd9c5c,
nsIPresContext * 0x036f16b0) line 631
nsHTMLInputElement::Focus(nsHTMLInputElement * const 0x03bd9c50) line 609 + 28
bytes
HTMLInputElementFocus(JSContext * 0x036f1180, JSObject * 0x02ce2c40, unsigned
int 0, long * 0x02cd9f10, long * 0x0012b920) line 812 + 15 bytes
js_Invoke(JSContext * 0x036f1180, unsigned int 0, unsigned int 0) line 716 + 23
bytes
js_Interpret(JSContext * 0x036f1180, long * 0x0012c25c) line 2520 + 15 bytes
js_Invoke(JSContext * 0x036f1180, unsigned int 1, unsigned int 2) line 732 + 13
bytes
js_InternalInvoke(JSContext * 0x036f1180, JSObject * 0x02ce19a8, long 45748504,
unsigned int 0, unsigned int 1, long * 0x0012c3f0, long * 0x0012c380) line 805 +
19 bytes
JS_CallFunctionValue(JSContext * 0x036f1180, JSObject * 0x02ce19a8, long
45748504, unsigned int 1, long * 0x0012c3f0, long * 0x0012c380) line 2815 + 31
bytes
nsJSContext::CallEventHandler(nsJSContext * const 0x036f1310, void * 0x02ce19a8,
void * 0x02ba1118, unsigned int 1, void * 0x0012c3f0, int * 0x0012c3ec, int 0)
line 847 + 33 bytes
nsJSEventListener::HandleEvent(nsIDOMEvent * 0x03c558f4) line 154 + 64 bytes
nsXBLEventHandler::ExecuteHandler(nsXBLEventHandler * const 0x03bda490, const
nsString & {...}, nsIDOMEvent * 0x03c558f4) line 616
nsXBLEventHandler::Focus(nsIDOMEvent * 0x03c558f4) line 218 + 44 bytes
nsEventListenerManager::HandleEvent(nsIPresContext * 0x036f16b0, nsEvent *
0x0012d0f4, nsIDOMEvent * * 0x0012cdb8, nsIDOMEventTarget * 0x03334810, unsigned
int 2, nsEventStatus * 0x0012d11c) line 1153 + 23 bytes
nsXULElement::HandleDOMEvent(nsXULElement * const 0x03334800, nsIPresContext *
0x036f16b0, nsEvent * 0x0012d0f4, nsIDOMEvent * * 0x0012cdb8, unsigned int 2,
nsEventStatus * 0x0012d11c) line 3344
nsXULElement::HandleDOMEvent(nsXULElement * const 0x03bd9e50, nsIPresContext *
0x036f16b0, nsEvent * 0x0012d0f4, nsIDOMEvent * * 0x0012cdb8, unsigned int 2,
nsEventStatus * 0x0012d11c) line 3367 + 39 bytes
nsGenericElement::HandleDOMEvent(nsIPresContext * 0x036f16b0, nsEvent *
0x0012d0f4, nsIDOMEvent * * 0x0012cdb8, unsigned int 1, nsEventStatus *
0x0012d11c) line 1395 + 39 bytes
nsHTMLInputElement::HandleDOMEvent(nsHTMLInputElement * const 0x03bd9c5c,
nsIPresContext * 0x036f16b0, nsEvent * 0x0012d0f4, nsIDOMEvent * * 0x00000000,
unsigned int 1, nsEventStatus * 0x0012d11c) line 813 + 31 bytes
nsEventStateManager::SendFocusBlur(nsEventStateManager * const 0x03bbd050,
nsIPresContext * 0x036f16b0, nsIContent * 0x03bd9c5c) line 2416
nsEventStateManager::SetContentState(nsEventStateManager * const 0x03bbd058,
nsIContent * 0x03bd9c5c, int 2) line 2189
nsHTMLInputElement::SetFocus(nsHTMLInputElement * const 0x03bd9c5c,
nsIPresContext * 0x036f16b0) line 631
nsHTMLInputElement::Focus(nsHTMLInputElement * const 0x03bd9c50) line 609 + 28
bytes
HTMLInputElementFocus(JSContext * 0x036f1180, JSObject * 0x02ce2c40, unsigned
int 0, long * 0x02cd9ee4, long * 0x0012d41c) line 812 + 15 bytes
js_Invoke(JSContext * 0x036f1180, unsigned int 0, unsigned int 0) line 716 + 23
bytes
js_Interpret(JSContext * 0x036f1180, long * 0x0012dd58) line 2520 + 15 bytes
js_Invoke(JSContext * 0x036f1180, unsigned int 1, unsigned int 2) line 732 + 13
bytes
js_InternalInvoke(JSContext * 0x036f1180, JSObject * 0x02ce19a8, long 45748376,
unsigned int 0, unsigned int 1, long * 0x0012deec, long * 0x0012de7c) line 805 +
19 bytes
JS_CallFunctionValue(JSContext * 0x036f1180, JSObject * 0x02ce19a8, long
45748376, unsigned int 1, long * 0x0012deec, long * 0x0012de7c) line 2815 + 31
bytes
nsJSContext::CallEventHandler(nsJSContext * const 0x036f1310, void * 0x02ce19a8,
void * 0x02ba1098, unsigned int 1, void * 0x0012deec, int * 0x0012dee8, int 0)
line 847 + 33 bytes
nsJSEventListener::HandleEvent(nsIDOMEvent * 0x03c53204) line 154 + 64 bytes
nsXBLEventHandler::ExecuteHandler(nsXBLEventHandler * const 0x03bda490, const
nsString & {...}, nsIDOMEvent * 0x03c53204) line 616
nsXBLEventHandler::Focus(nsIDOMEvent * 0x03c53204) line 218 + 44 bytes
nsEventListenerManager::HandleEvent(nsIPresContext * 0x036f16b0, nsEvent *
0x0012ed48, nsIDOMEvent * * 0x0012e8b4, nsIDOMEventTarget * 0x03334810, unsigned
int 2, nsEventStatus * 0x0012ed44) line 1153 + 23 bytes
nsXULElement::HandleDOMEvent(nsXULElement * const 0x03334800, nsIPresContext *
0x036f16b0, nsEvent * 0x0012ed48, nsIDOMEvent * * 0x0012e8b4, unsigned int 2,
nsEventStatus * 0x0012ed44) line 3344
nsXULElement::HandleDOMEvent(nsXULElement * const 0x03bd9e50, nsIPresContext *
0x036f16b0, nsEvent * 0x0012ed48, nsIDOMEvent * * 0x0012e8b4, unsigned int 2,
nsEventStatus * 0x0012ed44) line 3367 + 39 bytes
nsGenericElement::HandleDOMEvent(nsIPresContext * 0x036f16b0, nsEvent *
0x0012ed48, nsIDOMEvent * * 0x0012e8b4, unsigned int 1, nsEventStatus *
0x0012ed44) line 1395 + 39 bytes
nsHTMLInputElement::HandleDOMEvent(nsHTMLInputElement * const 0x03bd9c5c,
nsIPresContext * 0x036f16b0, nsEvent * 0x0012ed48, nsIDOMEvent * * 0x00000000,
unsigned int 1, nsEventStatus * 0x0012ed44) line 813 + 31 bytes
nsEventStateManager::PreHandleEvent(nsEventStateManager * const 0x03bbd058,
nsIPresContext * 0x036f16b0, nsEvent * 0x0012efd4, nsIFrame * 0x037751dc,
nsEventStatus * 0x0012ef3c, nsIView * 0x03c59e20) line 368
PresShell::HandleEventInternal(nsEvent * 0x0012efd4, nsIView * 0x03c59e20,
nsEventStatus * 0x0012ef3c) line 3900 + 43 bytes
PresShell::HandleEvent(PresShell * const 0x03328884, nsIView * 0x03c59e20,
nsGUIEvent * 0x0012efd4, nsEventStatus * 0x0012ef3c, int & 1) line 3841 + 23
bytes
nsView::HandleEvent(nsView * const 0x03c59e20, nsGUIEvent * 0x0012efd4, unsigned
int 8, nsEventStatus * 0x0012ef3c, int & 1) line 782
nsView::HandleEvent(nsView * const 0x03328ee0, nsGUIEvent * 0x0012efd4, unsigned
int 28, nsEventStatus * 0x0012ef3c, int & 1) line 755
nsViewManager2::DispatchEvent(nsViewManager2 * const 0x02f2f6b0, nsGUIEvent *
0x0012efd4, nsEventStatus * 0x0012ef3c) line 1389
HandleEvent(nsGUIEvent * 0x0012efd4) line 69
nsWindow::DispatchEvent(nsWindow * const 0x03c59cf4, nsGUIEvent * 0x0012efd4,
nsEventStatus & nsEventStatus_eIgnore) line 560 + 10 bytes
nsWindow::DispatchWindowEvent(nsGUIEvent * 0x0012efd4) line 581
nsWindow::DispatchFocus(unsigned int 105) line 3833 + 15 bytes
nsWindow::ProcessMessage(unsigned int 7, unsigned int 28968636, long 0, long *
0x0012f318) line 2895 + 19 bytes
nsWindow::WindowProc(HWND__ * 0x007f073a, unsigned int 7, unsigned int 28968636,
long 0) line 829 + 27 bytes
USER32! 77e719d0()
USER32! 77e71982()
NTDLL! 77f763a3()
Assignee: rogerl → asa
Component: Javascript Engine → Browser-General
QA Contact: pschwartau → doronr
Comment 3•25 years ago
|
||
More info: I do not crash on Linux on any of the links in the given Web page.
I am only crashing on WinNT. On Linux, I simply get the bug as originally
described: pop-up windows that come up empty...
Using: Linux, WinNT debug builds pulled 2000-07-06
Comment 4•25 years ago
|
||
dom 0 issue i beleive
Assignee: asa → jst
Component: Browser-General → DOM Level 0
QA Contact: doronr → desale
Comment 5•25 years ago
|
||
There seems to be a problem with loading the URL after the onclick handler is
called, reassigning to joki for futher investigation.
Assignee: jst → joki
| Assignee | ||
Comment 6•25 years ago
|
||
Crash is bad, nominated for nsbeta3. Reassigning to myself to get some
attention.
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•25 years ago
|
||
We don't seem to be crashing anymore, removing crash keyword. Also, because
crash is the reason for nominating nsbeta3, minusing.
There seems to be something wrong with the site/page in the URL. It doesn't seem
to work well in any browser I have tried, and I get JS errors in console on
Mozilla (like missing semicolon etc.)
This bug has been marked "future" because the original netscape engineer working
on this is over-burdened. If you feel this is an error, that you or another
known resource will be working on this bug,or if it blocks your work in some way
-- please attach your concern to the bug for reconsideration.
I've corrected the cause of the error message "missing semicolon" and it doesn't
change anything.
This possibility (A href=... onclick=create_window1 target=window1) run well
with IE 4.0, 5.0, Netscape 4.73 and Mozilla M15
It's the only way to see the color of the link change even if the window is
create in javascript, which is a really useful function, by example on the
example page, it allows the visitor to see which message he has already read on
the forum.
Since this function is 1.commonly running and 2.useful, I think it's important
to fix it (and it was running with M15, so it may not be a pain to fix it.)
But I'm not good developer enough to fix it by myself...
Comment 9•25 years ago
|
||
This seems to be working now (tested in build 2000101020 on WinNT)
| Assignee | ||
Comment 10•25 years ago
|
||
Worksforme on NT & Linux.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•