bard / mozrepl

Remotely control Firefox and other Mozilla apps with JavaScript
https://github.com/bard/mozrepl/wiki/
510 stars 64 forks source link

Error "Exposing privileged or cross-origin callable is prohibited" #67

Open Logioniz opened 7 years ago

Logioniz commented 7 years ago

A number of harmless commands leads to such error: "Exposing privileged or cross-origin callable is prohibited"

$ nc localhost 4242

Welcome to MozRepl.

 - If you get stuck at the "...>" prompt, enter a semicolon (;) at the beginning of the line to force evaluation.
 - If you get errors after every character you type, see http://github.com/bard/mozrepl/wikis/troubleshooting (short version: stop using Microsoft telnet, use netcat or putty instead)

Current working context: chrome://browser/content/browser.xul
Current input mode: syntax

repl> content.location.href="https://ya.ru";
"https://ya.ru"
repl> repl.enter(content)
[object Window] - {close: function() {...}, stop: function() {...}, focus: function() {...}, blur: function() {...}, open: function() {...}, alert: function() {...}, confirm: function() {...}, ...}
repl> repl.back()
!!! Error: Exposing privileged or cross-origin callable is prohibited

Details:

repl>

I think that this is bug. What can you say about this problem?

m-bock commented 7 years ago

same thing here!

Too bad, because It think it's such a nice tool! And I'd love to use it more often.... Would be really, really nice if that could be fixed..