Giter Site home page Giter Site logo

Comments (10)

caffodian avatar caffodian commented on June 30, 2024

We currently use store.js. so one initial take on this would be to determine if the store wrapper is present, if so, use that. else use the localstorage API directly, and try to handle errors properly.

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

This will be quite difficult to test.

I'm not convinced that disabling DOM Storage is actually the same as disallowing it. Disabling DOM Storage makes localStorage null. But the production stacktrace has something like Access is denied

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

By spec,

it actually throws an exception:

https://mathiasbynens.be/notes/localstorage-pattern#comment-9

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

So one thing to verify is whether or not store.js uses this pattern.

If so, great, let's just swap.

If not, this plugin needs to keep a state of whether or not localStorage is available, based on the results of that ugly try/catch idea.

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

Not currently a huge fan of the existing "roll your own suggestions by just putting everything into a string, separated by nbsps" implementation...

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

Possible way to manually test it: go into private browsing mode in Chrome?

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

Found #23 while testing this, which makes manual testing quite annoying, since you can't consistently typo a word without the wrapped nbsps.

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

Next problem: how to properly mock the different localstorage states. sinon doesn't seem very happy with me attempting to mock localStorage.getItem, but I may be doing something wrong. error message very cryptic.

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

Possible way to test this: customers reported it when we were not a trusted site in IE.

from ckeditor-spell-check-plugin-js-dev-edge.

caffodian avatar caffodian commented on June 30, 2024

fixed in #24

from ckeditor-spell-check-plugin-js-dev-edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.