зеркало из https://github.com/mozilla/gecko-dev.git
Bug 497304 - Crash [@ nsAccessibleWrap::get_accParent(IDispatch**) ], r=davidb
This commit is contained in:
Родитель
a1c5cc64d9
Коммит
ef16fedfde
|
@ -203,8 +203,13 @@ __try {
|
|||
if (widget) {
|
||||
hwnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW);
|
||||
NS_ASSERTION(hwnd, "No window handle for window");
|
||||
|
||||
nsIViewManager* viewManager = view->GetViewManager();
|
||||
if (!viewManager)
|
||||
return E_UNEXPECTED;
|
||||
|
||||
nsIView *rootView;
|
||||
view->GetViewManager()->GetRootView(rootView);
|
||||
viewManager->GetRootView(rootView);
|
||||
if (rootView == view) {
|
||||
// If the current object has a widget but was created by an
|
||||
// outer object with its own outer window, then
|
||||
|
|
Загрузка…
Ссылка в новой задаче