Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Saved CSS randomly changed #9

Open
jkuss opened this issue Jun 16, 2010 · 4 comments
Open

Saved CSS randomly changed #9

jkuss opened this issue Jun 16, 2010 · 4 comments
Labels

Comments

@jkuss
Copy link

jkuss commented Jun 16, 2010

Noticed today a custom CSS I had stored randomly changed.

A lot of values within rules were missing and some whole rules were gone. It was very odd, I thought the site had changed (therefore screwing up what I was pointing to) but it hadn't.

Luckily I had a recent version of my CSS saved separately from your Extension, when I copied the backup in, everything was fine again.

@sirn
Copy link
Owner

sirn commented Jun 16, 2010

Hmm, this is a very strange issue. There are two places that modifies the database, one is the manager and the other one that modify the data without user interaction is the database updater code, which shouldn't cause any problems (since it only add extra field to the existing data.)

So I need a bit more information for this; could you give the following info?

  • Operation system.
  • SIMBL/InputManager plugins installed (only if you're on a Mac).
  • When did the problem happened? After you've saved something, after launch?
  • Any example of User CSS / Domain rules that messed up.
  • How big is your database and how many User CSS installed.

The database is stored at ~/Library/Safari/LocalStorage/safari-extension_com.gridth.usercss-v892bvzc73_0.localstorage on a Mac or %USERPROFILE%/AppData/Local/Apple Computer/Safari/LocalStorage/safari-extension_com.gridth.usercss-v892bvzc73_0.localstorage on Windows.

The other cause of the problem could be the input sanitizer I added to workaround the trailing slash problem, but that doesn't modify the database.

@jkuss
Copy link
Author

jkuss commented Jun 16, 2010

Mac OS 10.6.4 (updated today), GreaseKit installed (but I don't use it), Not sure when problem happened, I can email the diff file of the old/new CSS, 20KB DB with 2 CSS installed.

@sirn
Copy link
Owner

sirn commented Jun 16, 2010

I can email the diff file of the old/new CSS

Thanks, that would help a lot. I can be reach at sirn [at] ogsite.net. I'm inclined to believe it is a problem with the manager, but still couldn't think how it could happen randomly.

@sirn
Copy link
Owner

sirn commented Jun 16, 2010

Still couldn't reproduce the problem, but will leave this bug open until I'm sure it is fixed.

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

No branches or pull requests

2 participants