So in Greasemonkey 1.0 - 3.x, @grant none made this "just work", but in GM
4 we don't have the right APIs to retain that feature.  Does your script
use any GM APIs?  If not, does this technique help?

https://wiki.greasespot.net/index.php?title=Content_Scope_Runner&oldid=7215

On Fri, Nov 17, 2017 at 9:17 AM, Evgeniy <[email protected]> wrote:

> It seems this mailing list won't be a boring place for some time after
> Mozilla has released its 57 Quantum and Anthony struggles with GM 4…
> I'm updating my 20+ scripts now and experience this problem.
> localStorage.set("some", "thing") works fine in one tab and I can even
> leave that web page and visit it again, and localStorage.get("some")
> returns "thing" to me. Also I see all my values in Firefox's Developer /
> Storage Inspector. But I don't see my data in other tabs I open with that
> same web page, and when I close FF and open it again, all my data is gone.
> Basically, it doesn't save it between sessions. On the other hand, cookies
> are saved as usual.
> I guess it has something to do with new security model in which our GM
> scripts run. Checking about:config, I see various keys like
> dom.storage.enabled and dom.storageManager.enabled and (unrelated?)
> devtools.storage.enabled all set to true.
> Anybody knows what's happened in GM 4 with respect to this API and how to
> make it work as before?
>
> --
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/greasemonkey-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to