mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
26937e21bf
- reduces a number of c++<--> java calls - added NULL checks - made DOMAccessor to be secure - added util and tests packages - wrote test applets - updated README
26 lines
854 B
Diff
26 lines
854 B
Diff
Index: nsWebShell.cpp
|
|
===================================================================
|
|
RCS file: /cvsroot/mozilla/webshell/src/nsWebShell.cpp,v
|
|
retrieving revision 1.429
|
|
diff -r1.429 nsWebShell.cpp
|
|
111a112,116
|
|
> #ifdef JAVA_DOM
|
|
> #include "nsIJavaDOM.h"
|
|
> static NS_DEFINE_IID(kJavaDOMCID, NS_JAVADOM_CID);
|
|
> static NS_DEFINE_IID(kIJavaDOMIID, NS_IJAVADOM_IID);
|
|
> #endif // JAVA_DOM
|
|
3107a3113,3125
|
|
>
|
|
> #ifdef JAVA_DOM
|
|
> nsresult jrv = NS_OK;
|
|
> NS_WITH_SERVICE(nsIDocumentLoaderObserver, javaDOM, kJavaDOMCID, &jrv);
|
|
> if (NS_FAILED(jrv) || !javaDOM) {
|
|
> fprintf(stderr,
|
|
> "nsWebShell::Init: GetService of JavaDOM failed (error %x)\n",
|
|
> jrv);
|
|
> } else {
|
|
> printf("\n webshell: added JAVADOM as observer...\n");
|
|
> mDocLoader->AddObserver(javaDOM);
|
|
> }
|
|
> #endif // JAVA_DOM
|