So I’m interacting with a known secure page and I need to see it’s expando properties.
So in my content script I write,
var foo = window.wrappedJSObject.Foo;
// This is a promise. I can print it to the console
// and see that it successfully fetches and executes the promise.
var bar_promise = foo.bar();
console.log(bar_promise);
// However, I don't have permission to do this:
bar_promise.then((x) => { console.log(x) });
Why can’t I do this? I get Uncaught (in promise) Error: Permission denied to access object