usercss icon indicating copy to clipboard operation
usercss copied to clipboard

Saved CSS randomly changed

Open jkuss opened this issue 14 years ago • 4 comments

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.

jkuss avatar Jun 16 '10 18:06 jkuss

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.

sirn avatar Jun 16 '10 19:06 sirn

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.

jkuss avatar Jun 16 '10 19:06 jkuss

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 avatar Jun 16 '10 19:06 sirn

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

sirn avatar Jun 16 '10 20:06 sirn