mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
bug 44774, 44775
author=ashuk r=ovk@sparc.spb.su Minor fix for failed QA Test. Patch supplied by Oleg. _Ashu
This commit is contained in:
parent
6af181aba5
commit
4b8579149a
@ -71,7 +71,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_CurrentPageImp
|
||||
nsIContentViewer* contentViewer ;
|
||||
nsresult rv = nsnull;
|
||||
rv = initContext->docShell->GetContentViewer(&contentViewer);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (NS_FAILED(rv) || contentViewer==nsnull ) {
|
||||
initContext->initFailCode = kGetContentViewerError;
|
||||
::util_ThrowExceptionToJava(env, "Exception: cant get ContentViewer from DocShell");
|
||||
return;
|
||||
@ -336,7 +336,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_CurrentPageImp
|
||||
nsIContentViewer* contentViewer ;
|
||||
nsresult rv = nsnull;
|
||||
rv = initContext->docShell->GetContentViewer(&contentViewer);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (NS_FAILED(rv) || contentViewer==nsnull) {
|
||||
initContext->initFailCode = kGetContentViewerError;
|
||||
::util_ThrowExceptionToJava(env, "Exception: cant get ContentViewer from DocShell");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user