Closed
Bug 14073
Opened 25 years ago
Closed 25 years ago
javascript alert does not work
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: gayatrib, Assigned: buster)
Details
Javascript alert message does not work in today's builds.
It gives an assertion. We need this as disabling buttons
is not working properly (bug 13808) and we used an alert
to take care of untimely click on finish button in profile wizard.
(bug 13968). In today's builds alert does not work. I am including
a test case and the stack trace. As the stack trace shows this to be
originating from nsEditor.cpp (line 241), assigning to buster.
Here is the test case:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY test.label "Test Alert">
]>
<window style="width: 100%; height: 100%" align="vertical"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="500" height="400">
<html:script>
function testAlert()
{
alert ("This is an alert box!\n");
}
</html:script>
<box>
<titledbutton id="test" value="&test.label;"
onclick="testAlert()" align="left"/>
</box>
</window>
----------
Stack Trace:
NTDLL! 77f76274()
nsDebug::PreCondition(const char * 0x021e45b8, const char * 0x021e45ac, const
char * 0x021e4580, int 294) line
163 + 13 bytes
nsEditor::GetDocument(nsEditor * const 0x021105b0, nsIDOMDocument * *
0x0012c080) line 294 + 41 bytes
nsHTMLEditor::~nsHTMLEditor() line 176
nsHTMLEditorLog::~nsHTMLEditorLog() line 47 + 22 bytes
nsHTMLEditorLog::`scalar deleting destructor'(unsigned int 1) + 15 bytes
nsEditor::Release(nsEditor * const 0x021105b0) line 178 + 102 bytes
nsHTMLEditor::Release(nsHTMLEditor * const 0x021105b0) line 211 + 12 bytes
nsHTMLEditorLog::Release(nsHTMLEditorLog * const 0x021105b0) line 50 + 12 bytes
nsCOMPtr<nsIEditor>::assign_with_AddRef(nsISupports * 0x00000000) line 633
nsCOMPtr<nsIEditor>::operator=(nsIEditor * 0x00000000) line 533
nsGfxTextControlFrame::~nsGfxTextControlFrame() line 246
nsGfxTextControlFrame::`scalar deleting destructor'(unsigned int 1) + 15 bytes
nsFrame::Destroy(nsFrame * const 0x02110a30, nsIPresContext & {...}) line 317 +
34 bytes
nsFrameList::DestroyFrames(nsIPresContext & {...}) line 29
nsContainerFrame::Destroy(nsContainerFrame * const 0x00e90ce0, nsIPresContext &
{...}) line 88
nsFrameList::DestroyFrames(nsIPresContext & {...}) line 29
nsContainerFrame::Destroy(nsContainerFrame * const 0x00e8be90, nsIPresContext &
{...}) line 88
nsFrameList::DestroyFrame(nsIPresContext & {...}, nsIFrame * 0x00e8be90) line
115
nsBoxFrame::RemoveFrame(nsBoxFrame * const 0x00e26d68, nsIPresContext & {...},
nsIPresShell & {...},
nsIAtom * 0x00000000, nsIFrame * 0x00e8be90) line 1388
FrameManager::RemoveFrame(FrameManager * const 0x02089ec0, nsIPresContext &
{...}, nsIPresShell & {...},
nsIFrame * 0x00e26d68, nsIAtom * 0x00000000, nsIFrame * 0x00e8be90) line 381
nsCSSFrameConstructor::ContentRemoved(nsCSSFrameConstructor * const 0x0209f140,
nsIPresContext *
0x0209fd30, nsIContent * 0x020f9220, nsIContent * 0x020fa600, int 2) line 6137 +
58 bytes
nsCSSFrameConstructor::RecreateFramesForContent(nsIPresContext * 0x0209fd30,
nsIContent * 0x020fa600) line
7523 + 28 bytes
nsCSSFrameConstructor::AttributeChanged(nsCSSFrameConstructor * const
0x0209f140, nsIPresContext *
0x0209fd30, nsIContent * 0x020fa600, nsIAtom * 0x00f57df0, int 2) line 6673 + 16
bytes
StyleSetImpl::AttributeChanged(StyleSetImpl * const 0x0209f1e0, nsIPresContext *
0x0209fd30, nsIContent *
0x020fa600, nsIAtom * 0x00f57df0, int -1) line 909
PresShell::AttributeChanged(PresShell * const 0x0209f038, nsIDocument *
0x0209dd60, nsIContent * 0x020fa600,
nsIAtom * 0x00f57df0, int -1) line 1652 + 53 bytes
XULDocumentImpl::AttributeChanged(XULDocumentImpl * const 0x0209dd60, nsIContent
* 0x020fa600, nsIAtom
* 0x00f57df0, int -1) line 2155
RDFElementImpl::SetAttribute(RDFElementImpl * const 0x020fa600, int 0, nsIAtom *
0x00f57df0, const nsString &
{...}, int 1) line 2433
RDFElementImpl::SetAttribute(RDFElementImpl * const 0x020fa5f0, const nsString &
{...}, const nsString & {...})
line 1217 + 35 bytes
ElementSetAttribute(JSContext * 0x0208deb0, JSObject * 0x01d798b0, unsigned int
2, long * 0x00e1de2c, long *
0x0012c9bc) line 258 + 23 bytes
js_Invoke(JSContext * 0x0208deb0, unsigned int 2, unsigned int 0) line 654 + 26
bytes
js_Interpret(JSContext * 0x0208deb0, long * 0x0012d1ec) line 2228 + 15 bytes
js_Invoke(JSContext * 0x0208deb0, unsigned int 0, unsigned int 0) line 670 + 13
bytes
js_Interpret(JSContext * 0x0208deb0, long * 0x0012d9d8) line 2228 + 15 bytes
js_Invoke(JSContext * 0x0208deb0, unsigned int 1, unsigned int 2) line 670 + 13
bytes
js_InternalCall(JSContext * 0x0208deb0, JSObject * 0x01d789f8, long 30905544,
unsigned int 1, long *
0x0012daf4, long * 0x0012db5c) line 747 + 15 bytes
JS_CallFunctionValue(JSContext * 0x0208deb0, JSObject * 0x01d789f8, long
30905544, unsigned int 1, long *
0x0012daf4, long * 0x0012db5c) line 2662 + 29 bytes
nsJSEventListener::HandleEvent(nsIDOMEvent * 0x02118970) line 110 + 43 bytes
nsEventListenerManager::HandleEvent(nsIPresContext & {...}, nsEvent *
0x0012dde0, nsIDOMEvent * *
0x0012dcbc, unsigned int 7, nsEventStatus & nsEventStatus_eIgnore) line 991 + 21
bytes
GlobalWindowImpl::HandleDOMEvent(GlobalWindowImpl * const 0x0208c034,
nsIPresContext & {...}, nsEvent *
0x0012dde0, nsIDOMEvent * * 0x0012dcbc, unsigned int 1, nsEventStatus &
nsEventStatus_eIgnore) line 2848
nsWebShell::OnEndDocumentLoad(nsWebShell * const 0x0208ca54, nsIDocumentLoader *
0x0208c9d0,
nsIChannel * 0x020f5250, unsigned int 0, nsIDocumentLoaderObserver * 0x0208ca54)
line 3302 + 34 bytes
nsDocLoaderImpl::FireOnEndDocumentLoad(nsDocLoaderImpl * 0x0208c9d0, unsigned
int 0) line 1094
nsDocLoaderImpl::OnStopRequest(nsDocLoaderImpl * const 0x0208c9d4, nsIChannel *
0x02117580, nsISupports
* 0x00000000, unsigned int 0, const unsigned short * 0x00000000) line 965
nsLoadGroup::RemoveChannel(nsLoadGroup * const 0x0208c970, nsIChannel *
0x02117580, nsISupports *
0x00000000, unsigned int 0, const unsigned short * 0x00000000) line 576 + 39
bytes
nsFileChannel::OnStopRequest(nsFileChannel * const 0x02117584, nsIChannel *
0x02118e50, nsISupports *
0x00000000, unsigned int 0, const unsigned short * 0x00000000) line 474
nsOnStopRequestEvent::HandleEvent(nsOnStopRequestEvent * const 0x02118300) line
269
nsStreamListenerEvent::HandlePLEvent(PLEvent * 0x02118304) line 144 + 12 bytes
PL_HandleEvent(PLEvent * 0x02118304) line 509 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x0208b410) line 470 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x003208b6, unsigned int 49301, unsigned int 0,
long 34124816) line 938 + 9
bytes
USER32! 77e71268()
02
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
dup of 14045, the editor is getting notifications incorrectly from necko (we
think)
*** This bug has been marked as a duplicate of 14045 ***
You need to log in
before you can comment on or make changes to this bug.
Description
•