You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling an API function from within a self-hosted JS builtin (e.g. Array#forEach), at a certain point the stack.filename will be "self-hosted" (when stack.name === "forEach"). This value causes GM_apiLeakCheck to throw an access violation error, since it doesn't begin with "chrome".
// ==UserScript==// @id bug462300test@phob.net// @name Mozilla bug 462300 test// @include http://phob.net/*// @run-at document-end// ==/UserScript==// Does not work.["bar"].forEach(function(aThing){GM_setValue("foo",aThing);});
Currently @ Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20121201 Firefox/20.0
When calling an API function from within a self-hosted JS builtin (e.g.
Array#forEach
), at a certain point thestack.filename
will be "self-hosted" (whenstack.name
=== "forEach"). This value causesGM_apiLeakCheck
to throw an access violation error, since it doesn't begin with "chrome".Currently @
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20121201 Firefox/20.0
Info:
https://bugzilla.mozilla.org/show_bug.cgi?id=462300
http://hg.mozilla.org/mozilla-central/annotate/ecdf0e332f17/js/src/jscntxt.cpp#l383
https://developer.mozilla.org/docs/SpiderMonkey/Internals/self-hosting
The text was updated successfully, but these errors were encountered: