Simple-tab-groups: STG completely broken after upgrade to Firefox 71

Created on 4 Dec 2019  路  16Comments  路  Source: Drive4ik/simple-tab-groups

Describe the bug
I upgraded to Firefox 31 today and STG is completely broken. The toolbar icon just shows an orange triangle, and I can't switch groups or display the list, nothing. In the extension preferences, I can save an error log. Here it is:

{
    "info": {
        "version": "4.3.6.1",
        "upTime": "179654ms",
        "browserInfo": {
            "name": "Firefox",
            "vendor": "Mozilla",
            "version": "71.0",
            "buildID": "20191203065433"
        },
        "platformInfo": {
            "os": "linux",
            "arch": "x86-64"
        },
        "permissions": {
            "bookmarks": false
        },
        "options": {
            "discardTabsAfterHide": false,
            "closePopupAfterChangeGroup": true,
            "openGroupAfterChange": true,
            "prependGroupTitleToWindowTitle": false,
            "createNewGroupWhenOpenNewWindow": false,
            "showNotificationAfterMoveTab": true,
            "openManageGroupsInTab": true,
            "showConfirmDialogBeforeGroupDelete": true,
            "showNotificationAfterGroupDelete": true,
            "showContextMenuOnTabs": true,
            "showContextMenuOnLinks": false,
            "exportGroupToMainBookmarkFolder": true,
            "showExtendGroupsPopupWithActiveTabs": false,
            "showTabsWithThumbnailsInManageGroups": false,
            "autoBackupEnable": true,
            "autoBackupIncludeTabThumbnails": false,
            "autoBackupIncludeTabFavIcons": false,
            "autoBackupGroupsToBookmarks": false,
            "autoBackupGroupsToFile": true,
            "enableDarkTheme": false,
            "hotkeys": [
                {
                    "ctrlKey": true,
                    "shiftKey": false,
                    "altKey": false,
                    "metaKey": false,
                    "key": "`",
                    "keyCode": 192,
                    "action": "load-next-group",
                    "groupId": 0
                },
                {
                    "ctrlKey": true,
                    "shiftKey": true,
                    "altKey": false,
                    "metaKey": false,
                    "key": "`",
                    "keyCode": 192,
                    "action": "load-prev-group",
                    "groupId": 0
                },
                {
                    "ctrlKey": false,
                    "shiftKey": true,
                    "altKey": false,
                    "metaKey": false,
                    "key": "F2",
                    "keyCode": 113,
                    "action": "move-active-tab-to-custom-group",
                    "groupId": 0
                }
            ],
            "defaultBookmarksParent": "toolbar_____",
            "defaultGroupIconViewType": "main-squares",
            "defaultGroupIconColor": "",
            "autoBackupLastBackupTimeStamp": 1575367066,
            "autoBackupIntervalKey": "hours",
            "autoBackupIntervalValue": 6,
            "autoBackupFolderName": "STG-backups",
            "autoBackupBookmarksFolderName": "STG bookmarks"
        }
    },
    "logs": [
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:14:08 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 3:42:44 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 3:35:19 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:55:08 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:51:44 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:51:25 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:50:48 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        }
    ]
}

I thought this could be related to auto-backup, so I tried to disable auto-backup, but when I restart the browser, the auto-backup feature is still enabled, so I can't disable it. I was able to enable debug logging in STG preferences, but the new log after restart doesn't seem to have any debug information, even though it looks a bit different:

{
    "info": {
        "version": "4.3.6.1",
        "upTime": "23783ms",
        "browserInfo": {
            "name": "Firefox",
            "vendor": "Mozilla",
            "version": "71.0",
            "buildID": "20191203065433"
        },
        "platformInfo": {
            "os": "linux",
            "arch": "x86-64"
        },
        "permissions": {
            "bookmarks": false
        },
        "options": {
            "discardTabsAfterHide": false,
            "closePopupAfterChangeGroup": true,
            "openGroupAfterChange": true,
            "prependGroupTitleToWindowTitle": false,
            "createNewGroupWhenOpenNewWindow": false,
            "showNotificationAfterMoveTab": true,
            "openManageGroupsInTab": true,
            "showConfirmDialogBeforeGroupDelete": true,
            "showNotificationAfterGroupDelete": true,
            "showContextMenuOnTabs": true,
            "showContextMenuOnLinks": false,
            "exportGroupToMainBookmarkFolder": true,
            "showExtendGroupsPopupWithActiveTabs": false,
            "showTabsWithThumbnailsInManageGroups": false,
            "autoBackupEnable": true,
            "autoBackupIncludeTabThumbnails": false,
            "autoBackupIncludeTabFavIcons": false,
            "autoBackupGroupsToBookmarks": false,
            "autoBackupGroupsToFile": true,
            "enableDarkTheme": false,
            "hotkeys": [
                {
                    "ctrlKey": true,
                    "shiftKey": false,
                    "altKey": false,
                    "metaKey": false,
                    "key": "`",
                    "keyCode": 192,
                    "action": "load-next-group",
                    "groupId": 0
                },
                {
                    "ctrlKey": true,
                    "shiftKey": true,
                    "altKey": false,
                    "metaKey": false,
                    "key": "`",
                    "keyCode": 192,
                    "action": "load-prev-group",
                    "groupId": 0
                },
                {
                    "ctrlKey": false,
                    "shiftKey": true,
                    "altKey": false,
                    "metaKey": false,
                    "key": "F2",
                    "keyCode": 113,
                    "action": "move-active-tab-to-custom-group",
                    "groupId": 0
                }
            ],
            "defaultBookmarksParent": "toolbar_____",
            "defaultGroupIconViewType": "main-squares",
            "defaultGroupIconColor": "",
            "autoBackupLastBackupTimeStamp": 1575367066,
            "autoBackupIntervalKey": "hours",
            "autoBackupIntervalValue": 6,
            "autoBackupFolderName": "STG-backups",
            "autoBackupBookmarksFolderName": "STG bookmarks"
        }
    },
    "logs": [
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:32:32 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:32:28 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:30:18 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:26:09 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:25:57 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:25:46 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "version": "4.3.6.1",
            "date": "12/4/2019, 10:14:08 AM",
            "message": "An unexpected error occurred",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 3:42:44 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 3:35:19 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:55:08 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:51:44 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:51:25 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        },
        {
            "date": "8/22/2019, 1:50:48 PM",
            "message": "filename must not contain illegal characters",
            "lineNumber": 0,
            "stack": [
                ""
            ]
        }
    ]
}

I had to downgrade to Firefox 70, STG works fine there. Please advise what to do and how to debug this further. I'm staying away from Firefox 71 at the moment.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to Firefox 71

Desktop (please complete the following information):

  • OS and version: Fedora 31
  • Firefox version: 71
  • Simple Tab Groups version: 4.3.6.1

Most helpful comment

I create bug in bugzilla for this issue
https://bugzilla.mozilla.org/show_bug.cgi?id=1601365

All 16 comments

This might be related to #499.

Hi! Thanks for logs!
Can you enable debug mode (in addon settings) and record logs with this error?
How to start record logs
懈蟹芯斜褉邪卸械薪懈械

I need to understand exactly where the error occurs, but I just can not do it, and Firefox does not give a detailed log ...
Already a bunch of letters in my mail with this problem, but I can not understand because of what it is.
Can you help me?
You can make a copy of your Firefox profile, launch Firefox in this profile copy, delete all personal data, such as cache, passwords, browser history, tabs, etc. And send this profile to me, for debug. I have no error on Windows...

Thanks anyway!

Hi! I found the cause of the breakdown. Firefox 71 on linux cannot save data in IDBDatabase.
Screenshot_44
https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabaseException

CONSTRAINT_ERR: _A mutation operation in the transaction failed because a constraint was not satisfied_. For example, an object, such as an object store or index, already exists and a request attempted to create a new one.

I managed to save the data only by clearing the storage, maybe there is an error related to the indexes in the database.
This is less stable, but at least it works ....
4cd553f437a5eab250586e7f7122761374d0bc86

please, wait for version 4.3.6.2 or above, bug fixed in it

I create bug in bugzilla for this issue
https://bugzilla.mozilla.org/show_bug.cgi?id=1601365

I'm running Firefox 71.0.1 on Archlinux and it works fine.
Tested with the my main FF profile that was running in an older FF version before (upgrade path) and in a newly created test profile (STG installed directly on FF 71). Both work as expected.
Also in the inspect view of STG I can use browser.storage.local.set without problems.

Thanks for the quick fix!
How long does it take usually for the update to propagate to the addon repos?
Any temp workaround that could be used in the meantime?

This is less stable, but at least it works ....

So it's a fix or a workaround?

@320x200 You can downgrade to Firefox v70 and everything should work.

@532910 this is workaround.

You can downgrade

NO, you can not:

image

@532910 Revert your profile to what it was prior to updating to Firefox 71.

At least in Fedora 31, this should be resolved by this update:
https://bodhi.fedoraproject.org/updates/FEDORA-2019-ab3dab5ba6
The issue was a combination of Firefox source code and a compiler. Extensions can now write to local storage once again.

Firefox 71.0-2 have workaround for this issue.
https://metadata.ftp-master.debian.org/changelogs/main/f/firefox/unstable_changelog
(Other distros also should have it.)

This issue should be closed and 4cd553f reverted.

Has anyone tested this to be working with Firefox 72? Looking at https://bugzilla.mozilla.org/show_bug.cgi?id=1601707 it doesn't sound like the fix made it there, only for the (not yet released) 73 version.

Individual Linux distributions need to carry the fix themselves until the fix is included in upstream Firefox (yes, probably 73).

@532910 I will not roll back because many more users now have Firefox 68 and 69.
This fix does not break the addon, I鈥檒l delete it somewhere after half a year, when Firefox ~75 is released

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericwbailey picture ericwbailey  路  6Comments

Sophia10 picture Sophia10  路  4Comments

victoriastuart picture victoriastuart  路  5Comments

falolaf picture falolaf  路  4Comments

imwhynowhy picture imwhynowhy  路  5Comments