-
Notifications
You must be signed in to change notification settings - Fork 305
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
Stylus is broken in the last Chrome canary #528
Comments
Error in the "Inspect views - background page":
|
@Mottie I think we have to investigate why there is a |
@vsemozhetbyt Have you done something before the manager becomes empty? |
+1 |
@eight04 No, nothing at all. Canary has just updated and stylus has broken. |
Open
|
> BG.dbExec
< ƒ dbExecIndexedDB(method, ...args) {
return new Promise((resolve, reject) => {
Object.assign(indexedDB.open('stylish', 2), {
onsuccess(event) {
const database = event.target.result;…
> copy(BG.cachedStyles.list)
< undefined Copied [
null,
null,
null,
null,
{
"enabled": true,
"updateUrl": null,
"md5Url": null,
"url": null,
"originalMd5": null,
"installDate": 1540555811467,
"name": "global",
"sections": [
{
"code": ":link, :link * {color: blue !important;}\n:visited, :visited * {color: red !important;}\n\n:link img {outline: 1px solid white !important;}\n:visited img {outline: 1px solid red !important;}\n\n:focus {outline: 1px solid blue !important;}\n",
"urls": [],
"urlPrefixes": [],
"domains": [],
"regexps": []
}
],
"id": 14
}
] |
I've opened |
Same problem here. Executing the commands said above gives me: > BG.dbExec
< ƒ dbExecIndexedDB(method, ...args) {
return new Promise((resolve, reject) => {
Object.assign(indexedDB.open('stylish', 2), {
onsuccess(event) {
const database = event.target.result;…
> copy(BG.cachedStyles.list)
< undefined [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
To be clear: I had to manually recreate all my styles. It seems they were lost in an unrecoverable way if I am not mistaken. If you find the cause, maybe it is worth to report to the Chromium issue tracker to prevent such things in future, as many users would be hurt by this. |
To be on the safe side: https://bugs.chromium.org/p/chromium/issues/detail?id=899446 |
Same here |
This brings back one question that I'd like to have answered here clearly: Can WebExtension create file in its own folder without user interaction? Pardon this silly hijack and my ignorance; I've searched for this simple information and my currently limited knowledge suggests it is not possible, but I think it would be beneficial to have such stance around here somewhere, so the questions like "why doesn't Stylus do periodical automated backups" is answered beforehand. |
Webextensions can download files without user interaction by using the BTW, someone had suggested synchronizing styles through cloud services. See #82. |
No, this isn't possible. Why? Because reading/writing local files opens many attack vectors for malware (ref). I found that there is a method to use the IndexedDB file storage library (ref); but after some digging, it appears that this method still uses the indexDB to store the blob. It's not storing an actual file outside of the database. What else can be done? Earlier in another discussion, Tophf mentioned working on a time machine, but he's taking a break from Stylus and he didn't share any specifics of his idea with any of us. Currently, the user can export all the styles to the download folder by using the manage page "Export styles" button. After which, the file is safe from data loss by whatever is causing the issue reported here; but a user may never open the manager... The only solution I can think of would be to periodically replace the popup contents with a reminder and an export button. This is necessary if a user rarely opens the manager or popup. Would that be annoying? yes, so we would need also to add an option to disable it. And please let's keep the discussion about backups in issue #278. |
Same issue here, after the update all my styIes in IndexedDB had a value of "null" however I was able to manually recover all of my lost styles by combing through the "000003.log" file located in |
Chrome Version 72.0.3595.2 (Official Build) dev (64-bit) also has this bug, all styles are deleted. I cleared all storage for Stylus tried the import option, doesn't work. |
After deleting the database, you have to restart your browser (extensions). |
Update to 72.0.3597.0 has deleted all styles again. Maybe this is intended as a side-effect of the fix. |
https://bugs.chromium.org/p/chromium/issues/detail?id=899446#c14 :
|
@sovmu Does exporting styles work? If so, you can try and reinstall stylus and import the styles to see if the problem persists. |
Thanks, it worked! |
When I hit the update in chrome that zapped away all my styles it took about 20 seconds to fix. Open dev tools, Go to the Application tab index.db on the left over there and delete the stylus (stylish) db, restarted Chrome and then imported yesterdays backups because everyone knows that if you make changes to styles you create a new backup (export styles) I was back up and good in 20-30 seconds. It did affect New tab tools too but then again my backup habits saved me again. (I would suggest copying the DB out if your not sure of your backup) |
To TL;DR the link above to crbug #899446, this is fixed in 72.0.3597.0, which isn't (yet) available to dev channel users but should soon be. |
I have the same or very similar problem on Firefox 63, not in Chromium v70.0.3538.77 (running Linux, kubuntu 18.04). I am going to open a new issue because the title of this thread is misleading, makes it seem a Chrome issue only and was not easy to find that this one was same issue and now I see it has been closed "fixed upstream", which doesn't help firefox users. For me it was never broken in my Chromium and it is broken in Firefox. |
@ocumo It would be nice if you can open a new issue with detailed information 👍 This thread is related to a database bug in Chrome and they definitely are not the same problem. |
@vsemozhetbyt issue should be re-opened, it regressed again in the last Chrome build: I'm using Chrome
|
Can confirm for 72.0.3622.0 (Official Build) dev (64-bit), but strangely not for 72.0.3624.0 (Official Build) canary (64-bit) (fixed there?). |
@vsemozhetbyt good to know! count on me to ping you here with a status when the next Dev (not Canary) build lands. |
@vsemozhetbyt @Mottie bad news: testing Chrome 72.0.3626.7 (Official Build) dev (64-bit) / Ubuntu that just landed in the repos, styles still fail to load, and the console still shows:
|
Yeah, I had to clear IndexedDB again and import my saved styles. |
Has a bug been opened in the Chromium tracker for this issue? I can't seem to find one. |
+1, it's broken a long time ago. |
@karolyi Would you please be more specific? What issue are you encountering? |
@Mottie No style is applied to the pages, and I can't browse for styles. |
same here with latest chomium 75.0.3753.4 dev channel compiled by me
greetings |
Outdated. If you have any similar issues in the future, open a new issue. |
Styles list in the manage.html is empty. There is an error in the console:
The same error after an attempt to create and save a new style and go back to manage page. The style is not shown, the list is still empty.
The text was updated successfully, but these errors were encountered: