Skip to content
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

Note cache #13

Open
jorilallo opened this issue Dec 25, 2012 · 5 comments
Open

Note cache #13

jorilallo opened this issue Dec 25, 2012 · 5 comments
Assignees
Labels

Comments

@jorilallo
Copy link
Member

There are cases when notes isn't cleared when moving between urls.

@ghost ghost assigned jorilallo Dec 25, 2012
@d2s
Copy link

d2s commented Dec 26, 2012

Have seen this from time to time. Gets little bit distracting when one can't add new note for another website since the old one just keeps on dragging.

But fortunately, it's not happening that often. As a (bit painful) workaround, browser restart seems to help.

@jorilallo
Copy link
Member Author

If I remember correctly, it shows up when you have added some notes, so the title won't clear but is fetched from the cache instead. Same applies for Safari

@d2s
Copy link

d2s commented Dec 26, 2012

Haven't used Safari that much (even less with Kippt) but got weak signal on my head that problem could be partially caused by the situation where you have multiple tabs and start to write note about page in one tab (without saving it), move to another and try to add note about another. After that, problem could be visible for "some time". Not sure about the theory, thought.

@amckinlay
Copy link

The issue is that the extension's popup uses localStorage to cache unsaved fields. However, localStorage is global to the extension, and does not differ based on the tab the popup is activated in. LocalStorage is only cleared when a clip is saved, leading to the bug. I don't know what the goal of saving popup state is...maybe to avoid loss of form data if the popup is accidentally closed? Unfortunately, Google offers no easy solution. Perhaps:

  • Persist state in background page's DOM
  • Persist state in injected script using DOM or sessionStore (easier)

Unfortunately, Chrome's extension API closes the popup's window, so sessionStore cannot be used from within the popup.

@jorilallo
Copy link
Member Author

It's quite common that people close the extension accidentally and lose their notes. This feature was added to combat that.

As we're now thinking of making the extension with in-page injection, it would make sense to move to sessionStore. With in-page injection the underlying problem also disappears so it might make sense to remove the feature altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants