[Fixed] Dev tool/bookmarklet issues
Posted: Thu Jun 26, 2014 2:21 pm
It might be possible to reproduce this one only during a long session:
(JSURL.js doesn't have a line 103)
and
The same code works OK with scripting permitted.
If the error messages could be improved, it might shed light on what's causing the trouble. The 'too much recursion' problem is irritating because the bookmarklet it's based on sometimes works but there's no way of telling when it will fail.
Code: Select all
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Ctrl+R),
* 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,
* 3. Display to insert the result in a comment after the selection. (Ctrl+L)
*/
window.open(location)
/*
Exception: too much recursion
@chrome://noscript/content/JSURL.js:103
*/
and
Code: Select all
(function (u) {
var r = new XMLHttpRequest();
r.open('GET', u);
r.onreadystatechange = function () {
if (r.readyState == 4) alert(r.responseText.slice(0, 150) + '...');
};
r.send(null)
})(location)
/*
Exception:
@3
*/
If the error messages could be improved, it might shed light on what's causing the trouble. The 'too much recursion' problem is irritating because the bookmarklet it's based on sometimes works but there's no way of telling when it will fail.