Closed
Bug 557931
Opened 15 years ago
Closed 15 years ago
Crash [@ mozilla::widget::WindowHook::Lookup] with createTaskbarTabPreview
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: martijn.martijn, Assigned: jimm)
References
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(2 files, 1 obsolete file)
|
669 bytes,
text/html
|
Details | |
|
1.33 KB,
patch
|
robarnold
:
review+
dveditz
:
approval1.9.2.17-
dveditz
:
approval1.9.2.18-
|
Details | Diff | Splinter Review |
I was trying to use the nsIWinTaskbar service, but I get a crash when using it in the way provided with the testcase.
http://crash-stats.mozilla.com/report/index/15ae59d0-4523-4759-974a-63e7f2100407
0 xul.dll mozilla::widget::WindowHook::Lookup widget/src/windows/WindowHook.cpp:99
1 xul.dll mozilla::widget::WindowHook::LookupOrCreate widget/src/windows/WindowHook.cpp:109
2 xul.dll mozilla::widget::WindowHook::AddMonitor widget/src/windows/WindowHook.cpp:77
3 xul.dll mozilla::widget::TaskbarPreview::TaskbarPreview widget/src/windows/TaskbarPreview.cpp:107
4 xul.dll mozilla::widget::TaskbarTabPreview::TaskbarTabPreview widget/src/windows/TaskbarTabPreview.cpp:62
5 xul.dll mozilla::widget::WinTaskbar::CreateTaskbarTabPreview widget/src/windows/WinTaskbar.cpp:250
6 xul.dll NS_InvokeByIndex_P xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp:102
7 xul.dll XPCWrappedNative::CallMethod js/src/xpconnect/src/xpcwrappednative.cpp:2728
8 xul.dll XPC_WN_CallMethod js/src/xpconnect/src/xpcwrappednativejsops.cpp:1770
9 mozjs.dll js_Invoke js/src/jsinterp.cpp:1364
10 mozjs.dll js_Interpret js/src/jsops.cpp:2277
11 mozjs.dll js_Invoke js/src/jsinterp.cpp:1372
12 mozjs.dll js_InternalInvoke js/src/jsinterp.cpp:1429
13 mozjs.dll JS_CallFunctionValue js/src/jsapi.cpp:4957
14 xul.dll nsJSContext::CallEventHandler dom/base/nsJSEnvironment.cpp:2161
15 xul.dll nsJSEventListener::HandleEvent dom/src/events/nsJSEventListener.cpp:228
16 xul.dll nsEventListenerManager::HandleEventSubType content/events/src/nsEventListenerManager.cpp:1082
17 xul.dll nsEventListenerManager::HandleEvent content/events/src/nsEventListenerManager.cpp:1198
18 xul.dll nsEventTargetChainItem::HandleEvent content/events/src/nsEventDispatcher.cpp:201
19 xul.dll nsEventTargetChainItem::HandleEventTargetChain content/events/src/nsEventDispatcher.cpp:326
20 xul.dll nsEventDispatcher::Dispatch content/events/src/nsEventDispatcher.cpp:604
21 xul.dll DocumentViewerImpl::LoadComplete layout/base/nsDocumentViewer.cpp:1027
22 xul.dll nsDocShell::EndPageLoad docshell/base/nsDocShell.cpp:5746
23 xul.dll nsCOMPtr_base::assign_from_qi obj-firefox/xpcom/build/nsCOMPtr.cpp:96
24 xul.dll nsDocShell::OnStateChange docshell/base/nsDocShell.cpp:5624
| Reporter | ||
Updated•15 years ago
|
Summary: Crash [@ nsGenericElement::SetAttr] with createTaskbarTabPreview → Crash [@ mozilla::widget::WindowHook::Lookup] with createTaskbarTabPreview
| Assignee | ||
Comment 1•15 years ago
|
||
GetHWNDFromDocShell for the doc shell is failing, returning a null hwnd, which in turn retrieves a null nsWindow object which we invoke in GetWindowHook().
We should add a null check in CreateTaskbarTabPreview on toplevelHWND, and fail if that fails.
| Assignee | ||
Comment 2•15 years ago
|
||
(In reply to comment #1)
> GetHWNDFromDocShell for the doc shell is failing, returning a null hwnd, which
> in turn retrieves a null nsWindow object which we invoke in GetWindowHook().
>
> We should add a null check in CreateTaskbarTabPreview on toplevelHWND, and fail
> if that fails.
We return NULL in some cases from GetHWNDFromDocShell if we can't QI the nsIBaseWindow. Patch coming up.
| Assignee | ||
Comment 3•15 years ago
|
||
GetAncestor doesn't seem to mind the null value for the hwnd, so this should suffice.
Assignee: nobody → jmathies
Attachment #437707 -
Flags: review?(tellrob)
| Assignee | ||
Comment 4•15 years ago
|
||
Comment on attachment 437707 [details] [diff] [review]
fix
we need this in GetTaskbarWindowPreview as well.
Attachment #437707 -
Flags: review?(tellrob) → review-
| Assignee | ||
Comment 5•15 years ago
|
||
Somewhat overkill since GetNSWindowPtr should return null for a null hwnd, but just to be safe.
Attachment #437707 -
Attachment is obsolete: true
Attachment #437709 -
Flags: review?(tellrob)
Updated•15 years ago
|
Attachment #437709 -
Flags: review?(tellrob) → review+
| Assignee | ||
Comment 6•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 7•14 years ago
|
||
Comment on attachment 437709 [details] [diff] [review]
fix
This crash exists in 1.9.2 as well. See bug 618240. Requesting blocking, it's a simple no risk patch.
Attachment #437709 -
Flags: approval1.9.2.14?
Comment 8•14 years ago
|
||
Comment on attachment 437709 [details] [diff] [review]
fix
Approved for 1.9.2.15, a=dveditz for release-drivers
Attachment #437709 -
Flags: approval1.9.2.14? → approval1.9.2.14+
Comment 9•14 years ago
|
||
Comment on attachment 437709 [details] [diff] [review]
fix
Moving the flag to the correct release.
Attachment #437709 -
Flags: approval1.9.2.14+ → approval1.9.2.15+
Comment 10•14 years ago
|
||
Comment on attachment 437709 [details] [diff] [review]
fix
Didn't make the code-freeze for non-blockers, you can try again next time.
Attachment #437709 -
Flags: approval1.9.2.17+ → approval1.9.2.17-
Updated•14 years ago
|
status1.9.2:
--- → wanted
Updated•14 years ago
|
blocking1.9.2: --- → .18+
Comment 11•14 years ago
|
||
Comment on attachment 437709 [details] [diff] [review]
fix
Please land this for 1.9.2.18
Attachment #437709 -
Flags: approval1.9.2.18+
Updated•14 years ago
|
blocking1.9.2: .18+ → -
Updated•14 years ago
|
Comment 12•14 years ago
|
||
Not going to track this one. If it makes it today it makes it, if not that's fine too.
Updated•14 years ago
|
Crash Signature: [@ mozilla::widget::WindowHook::Lookup]
Comment 13•14 years ago
|
||
Comment on attachment 437709 [details] [diff] [review]
fix
Didn't make 3.6.18
Attachment #437709 -
Flags: approval1.9.2.18+ → approval1.9.2.18-
You need to log in
before you can comment on or make changes to this bug.
Description
•