Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Firefox support enablePrivilege("UniversalBrowserRead")?

I have written a plugin which queries webpage parameter from FireFox browser using NPAPI, but whenever I tried to query a webpage having iFrames, I'm getting error while trying to query the innerheight from my plugin:

permission denied to query innerHeight

I thought it would be cross-domain security rerstriction so I thought of running the following JavaScript code from my plugin using NPN_evaluate() function before querying information:

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

My question is does Firefox latest version support this JavaScript and will it allow me to query the information?

like image 998
Raveendra Pai U Avatar asked Apr 13 '26 01:04

Raveendra Pai U


1 Answers

"UniversalBrowserRead" doesn't work anymore (see here) and support for enablePrivilege() will be removed.

like image 62
Georg Fritzsche Avatar answered Apr 15 '26 13:04

Georg Fritzsche