New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use __exposedProps__ #1595
Comments
It no longer does. Closing this WAI. |
See #1607; this does appear to still matter, at least for GM_xhr. |
After the fix linked above for #1607, this seems to be done. My tests show that all of the other API methods act as expected; I believe because they always return nothing, or standard string/array objects, and: https://blog.mozilla.org/addons/2012/08/20/exposing-objects-to-content-safely/
|
I am getting the same exposedProps error when attempting to iterate over the array returned by GM_listValues(). The following simple script shows the issue: // ==UserScript==
// @name Demonstrate __exposedProps__ warning
// @namespace personal
// @include SITE_URL
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js
// @grant GM_listValues
// @version 1
// ==/UserScript==
var gmValues = GM_listValues();
gmValues.forEach(function(val, index){
console.log(val);
}); The console shows:
Additional Details: OSX 10.8.1, Firefox 15.0.1, GreaseMonkey 1.1 Thanks |
It would be helpful if you report this as its own separate issue. |
Firefox 15 gives an error like:
When running scripts.
The text was updated successfully, but these errors were encountered: