Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to detect load requests of iframe content elements?
    primarykey
    data
    text
    <p>I'm trying to create a secure Darknet with WebRTC DataChannels in pure HTML, so I'm not interested about to know when an iframe has been fully loaded, but instead I'm interested to capture the iframe elements (inline images and so) using a custom scheme so I can be able from the parent page (the one connected to the Darknet) to do the real request and response with the actual data. With FirefoxOS <a href="https://developer.mozilla.org/en-US/docs/Web/Reference/Events/mozbrowserlocationchange" rel="nofollow">mozbrowserlocationchange</a> event of the <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Browser?redirectlocale=en-US&amp;redirectslug=DOM%2FUsing_the_Browser_API" rel="nofollow">Browser API</a> objects (an extension to iframes) I could be able to capture the user navigation, cancel it, do the real request on the Darknet and later inject the iframe with the real content fetched by the parent page, but how could I be able to do the same with inline images and scripts on this loaded page? Or is this not currently possible and should I ask to them about add this functionality?</p> <p>Obviously, I don't have any control about the iframes content pages, so they would be created by whatever and in any way, and also the usage of Browser API is just because seems to be the most useful to whan I'm trying to do, ideally it would be perfect if this is possible to achieve with plain iframes... :-)</p> <p><strong>Update:</strong></p> <p>A half-solution I have thinking about would be since I could be able to capture the <a href="https://developer.mozilla.org/en-US/docs/Web/Reference/Events/mozbrowserlocationchange" rel="nofollow">mozbrowserlocationchange</a> event to do the real content request of the HTML page and before fill the iframe with it do the request of their linked images and scripts and set them inline to prevent the iframe from doing more request. This would only lead to somewhat very simple web pages compared to current web standards (no AJAX, no async loading of script tags...) but definitely it would be usable up to some point :-)</p> <p>Anyway, is there any other better alternative?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload