devtools-core
devtools-core copied to clipboard
seeing SecurityError when trying to run debugger.html in Firefox
reposting @clarkbw https://github.com/devtools-html/debugger.html/issues/1829
Running within Firefox 50 and 51 I'm seeing a SecurityError that pops up. It seems to think its coming from the _initializeRoot, the first line here in this code.
for (let i = 0; i < localStorage.length; ++i) {
let keyName = localStorage.key(i);
if (keyName.startsWith(PREFIX)) {
let { userValue, hasUserValue, defaultValue } =
JSON.parse(localStorage.getItem(keyName));
this._findOrCreatePref(keyName.slice(PREFIX.length), userValue,
hasUserValue, defaultValue, true);
}
}
Here's the error I'm seeing.
SecurityError: The operation is insecure. debugger.js:26917
Debugger</PrefBranch.prototype._initializeRoot http://localhost:8000/assets/build/debugger.js:26917:22
get prefs http://localhost:8000/assets/build/debugger.js:26949:8
pref http://localhost:8000/assets/build/debugger.js:27091:8
Debugger< http://localhost:8000/assets/build/debugger.js:56264:4
__webpack_require__ http://localhost:8000/assets/build/debugger.js:581:12
hotCreateRequire/fn http://localhost:8000/assets/build/debugger.js:88:20
Debugger</</< http://localhost:8000/assets/build/debugger.js:56193:18
Debugger</< http://localhost:8000/assets/build/debugger.js:56187:430
Debugger< http://localhost:8000/assets/build/debugger.js:56187:30
__webpack_require__ http://localhost:8000/assets/build/debugger.js:581:12
hotCreateRequire/fn http://localhost:8000/assets/build/debugger.js:88:20
Debugger</</< http://localhost:8000/assets/build/debugger.js:645:18
Debugger</< http://localhost:8000/assets/build/debugger.js:619:430
Debugger< http://localhost:8000/assets/build/debugger.js:619:30
__webpack_require__ http://localhost:8000/assets/build/debugger.js:581:12
hotCreateRequire/fn http://localhost:8000/assets/build/debugger.js:88:20
Debugger< http://localhost:8000/assets/build/debugger.js:611:2
__webpack_require__ http://localhost:8000/assets/build/debugger.js:581:12
Debugger< http://localhost:8000/assets/build/debugger.js:604:18
<anonymous> http://localhost:8000/assets/build/debugger.js:2:11
Not seeing this in Chrome or Firefox Nightly