Closed
Bug 340205
Opened 20 years ago
Closed 20 years ago
Crash - pasting javascript: URL into Insert Image when composing HTML message [@ nsJSThunk::EvaluateScript]
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 328697
People
(Reporter: 89tf5sn02, Unassigned)
Details
(Keywords: crash)
Crash Data
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: Thunderbird 1.5.0.4 (Windows/20060516)
When writing a new message for a newsgroup that has been configured for composing messages in HTML format in account settings, attempting to insert an HTML image and manually specifying an incorrect location (in this case a Javascript snippet was pasted in) the application crashes.
Reproducible: Always
Steps to Reproduce:
1. For the newsgroup account in question, enable composing messages in HTML format (Account Settings -> Composition & Addressing -> Compose messages in HTML fomat -> x)
2. Prepare to create a new newsgroup message by clicking the Write button.
3. From the menu, select Insert -> Image...
4. On the Location tab in the "Image Location:" edit box enter this text:
javascript:alert("test")
Hitting the OK will crash although it often seems you do not even have to hit the OK button.
3.
Actual Results:
Thunderbird exits and the typical Windows "thunderbird.exe has encountered a problem and needs to close. We are sorry for the inconvenience" message is shown. The Mozilla Quality Feedback Agent is then shown (I have it enabled).
Expected Results:
I would expect the application to fail gracefully with an error message informing me of the invalid image location.
Crashed in thunderbird.exe. Appears to be a NULL pointer dereference.
Comment 1•20 years ago
|
||
Reproduced TB 1.5.0.4, Win2K
Talkback: TB19458390H
This happens for a news or mail identity; and the problem occurs immediately upon pasting, no OK required. I only see this with the javascript: URL; if I paste some ordinary, non-image URL, there is no crash.
Using TB 2a1-0602 or 3a1-0529, I can't reproduce it.
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
OS: Windows XP → Windows 2000
Summary: Crash - Inserting invalid image location when composing HTML news message → Crash - pasting javascript: URL into Insert Image when composing HTML message
Version: unspecified → 1.5
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/caps/src/nsPrincipal.cpp&rev=1.37.2.1&mark=518,520#516
Incident ID: 19458390
Stack Signature nsJSThunk::EvaluateScript 532c0584
Product ID Thunderbird15
Build ID 2006051612
Trigger Time 2006-06-03 10:13:52.0
Platform Win32
Operating System Windows NT 5.0 build 2195
Module thunderbird.exe + (00105191)
URL visited
User Comments
Since Last Crash 18 sec
Total Uptime 104 sec
Trigger Reason Access violation
Source File, Line No. c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/jsurl/nsJSProtocolHandler.cpp, line 268
Stack Trace
nsJSThunk::EvaluateScript [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/jsurl/nsJSProtocolHandler.cpp, line 268]
nsJSChannel::InternalOpen [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/jsurl/nsJSProtocolHandler.cpp, line 550]
nsJSChannel::AsyncOpen [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/jsurl/nsJSProtocolHandler.cpp, line 522]
nsContentUtils::LoadImage [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsContentUtils.cpp, line 1925]
nsImageLoadingContent::ImageURIChanged [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsImageLoadingContent.cpp, line 478]
nsHTMLImageElement::SetAttr [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/html/content/src/nsHTMLImageElement.cpp, line 570]
nsGenericHTMLElement::SetAttrHelper [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/html/content/src/nsGenericHTMLElement.cpp, line 3036]
XPCWrappedNative::CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2152]
XPC_WN_GetterSetter [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1469]
js_Invoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1188]
js_InternalInvoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1285]
js_InternalGetOrSet [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1344]
js_SetProperty [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsobj.c, line 3087]
js_Interpret [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 3419]
js_Execute [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1435]
JS_EvaluateUCScriptForPrincipals [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsapi.c, line 4116]
nsJSContext::EvaluateString [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1061]
nsGlobalWindow::RunTimeout [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp, line 6372]
nsGlobalWindow::TimerCallback [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp, line 6749]
nsXULWindow::ShowModal [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 400]
nsContentTreeOwner::ShowAsModal [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpfe/appshell/src/nsContentTreeOwner.cpp, line 431]
nsGlobalWindow::OpenInternal [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp, line 5893]
nsGlobalWindow::OpenDialog [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp, line 4430]
XPTC_InvokeByIndex [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp, line 102]
XPCWrappedNative::CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2152]
XPC_WN_CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1445]
js_Invoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1188]
js_Interpret [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 3584]
js_Invoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1208]
nsXPCWrappedJSClass::CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp, line 1373]
nsXPCWrappedJS::CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappedjs.cpp, line 462]
SharedStub [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcstubs.cpp, line 147]
nsControllerCommandTable::DoCommand [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/embedding/components/commandhandler/src/nsControllerCommandTable.cpp, line 191]
nsBaseCommandController::DoCommand [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/embedding/components/commandhandler/src/nsBaseCommandController.cpp, line 166]
XPTC_InvokeByIndex [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp, line 102]
XPCWrappedNative::CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2152]
XPC_WN_CallMethod [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1445]
js_Invoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1188]
js_Interpret [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 3584]
js_Invoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1208]
js_InternalInvoke [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1285]
JS_CallFunctionValue [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsapi.c, line 4171]
nsJSContext::CallEventHandler [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1411]
nsJSEventListener::HandleEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/events/nsJSEventListener.cpp, line 195]
nsEventListenerManager::HandleEventSubType [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/events/src/nsEventListenerManager.cpp, line 1687]
nsEventListenerManager::HandleEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/events/src/nsEventListenerManager.cpp, line 1788]
nsXULElement::HandleDOMEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/xul/content/src/nsXULElement.cpp, line 2139]
PresShell::HandleDOMEventWithTarget [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp, line 6478]
nsMenuFrame::Execute [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/xul/base/src/nsMenuFrame.cpp, line 1645]
nsMenuFrame::HandleEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/xul/base/src/nsMenuFrame.cpp, line 452]
PresShell::HandleEventInternal [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp, line 6420]
PresShell::HandleEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp, line 6215]
nsViewManager::HandleEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/view/src/nsViewManager.cpp, line 2559]
nsViewManager::DispatchEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/view/src/nsViewManager.cpp, line 2246]
HandleEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/view/src/nsView.cpp, line 174]
nsWindow::DispatchEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp, line 1258]
nsWindow::DispatchMouseEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp, line 6019]
ChildWindow::DispatchMouseEvent [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp, line 6270]
nsWindow::WindowProc [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp, line 1440]
USER32.DLL + 0x3158f (0x77e4158f)
USER32.DLL + 0x31dc9 (0x77e41dc9)
USER32.DLL + 0x31e7e (0x77e41e7e)
nsAppStartup::Run [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 151]
main [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mail/app/nsMailApp.cpp, line 62]
Assignee: mscott → general
Component: Message Compose Window → DOM
Product: Thunderbird → Core
QA Contact: ian
Summary: Crash - pasting javascript: URL into Insert Image when composing HTML message → Crash - pasting javascript: URL into Insert Image when composing HTML message [@ nsJSThunk::EvaluateScript]
Version: 1.5 → 1.8 Branch
Comment 3•20 years ago
|
||
*** This bug has been marked as a duplicate of 328697 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Comment 4•20 years ago
|
||
Looks like this won't be fixed in a 1.5.0.x release.
Comment 5•20 years ago
|
||
(In reply to comment #4)
> Looks like this won't be fixed in a 1.5.0.x release.
This ended up being fixed for 1.5.0.5.
Updated•15 years ago
|
Crash Signature: [@ nsJSThunk::EvaluateScript]
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•