Working on developing a browser extension using the WebExtension API in FireFox. Currently, while writing a content script, I've encountered an issue where any DOM object passed into console.log
results in the string <unavailable>
being displayed instead of the actual object. See below:
$ console.log(document);
<unavailable>
Despite this behavior, I am able to still access the properties of the object.
$ console.log(document.baseURI);
https://the_base_uri.com
Interested in understanding why this occurs and what implications it may have?