I am trying to obtain the document inside a frame.
The following does not fail:
NPN_GetProperty(aInstance, windowObject, NPN_GetStringIdentifier("frames"), &frames))
but the following fails, returning a null element:
NPN_Invoke(aInstance, NPVARIANT_TO_OBJECT(frames), NPN_GetStringIdentifier("item"), &index, 1, ¤tFrame)
I've also tried to retrieve all elements with tag IFRAME
, but accessing contentWindow
or contentDocument
property returns a void element.
Are there any other approaches to this?