Sorry to belabor the point, but we're *still* stuck trying to access
the DOM in the new embedding API.  I've put together what I believe to
be a complete, minimal-example in GTK/X11 that directly inserts the
example code from https://wiki.mozilla.org/Embedding/NewApi/XpcomAccess
into the DocumentLoaded callback (as suggested on that page).

The code is available at http://pastebin.com/m694ad30e.  On my system,
it dies on line 46:

doc->CreateElement(NS_LITERAL_STRING("div"), getter_AddRefs(newdiv));

When we replace the contents of the DocumentLoaded callback with the
code we actually want to run, we find ourselves with similar problems.

Are we not setting something up properly?  If we *are* setting
everything up properly, is the DocumentLoaded callback the right place
for our DOM inspection code to go?
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to