RequestPolicyContinued / requestpolicy

a web browser extension that gives you control over cross-site requests. Available for XUL/XPCOM-based browsers.
https://github.com/RequestPolicyContinued/requestpolicy/wiki
Other
252 stars 35 forks source link

Iframes using srcdoc are blocked and cannot be easily unblocked #822

Open Cubittus opened 7 years ago

Cubittus commented 7 years ago

RPC version 1.0.beta12.4. FF version 51.0b3 (32-bit).

  1. Visit example URL : http://www.bbc.co.uk/news/business-38141510
  2. Note the blank space midway down the page which should be an iframe containing a stock graph.

RPC blocks this and the log shows the destination url as 'about:srcdoc'.

I added an allow rule:

This does not work as it only matches about://srcdoc. RPC adds two slashes to the about scheme which won't match about:srcdoc.

I had to add a rule:

for the iframe to load.

Should RPC handle about:srcdoc internally, as it does for about:blank for iframes?

myrdd commented 7 years ago

You are right, about:srcdoc should be whitelisted!

W3C links: