@@ -882,7 +882,7 @@ void nsPermissionManager::Startup() {
882882// nsPermissionManager Implementation
883883
884884#define PERMISSIONS_FILE_NAME " permissions.sqlite"
885- #define HOSTS_SCHEMA_VERSION 11
885+ #define HOSTS_SCHEMA_VERSION 10
886886
887887// Default permissions are read from a URL - this is the preference we read
888888// to find that URL. If not set, don't use any default permissions.
@@ -1539,25 +1539,6 @@ nsresult nsPermissionManager::InitDB(bool aRemoveFile) {
15391539 MOZ_FALLTHROUGH ;
15401540
15411541 case 9 : {
1542- rv = mDBConn ->SetSchemaVersion (10 );
1543- NS_ENSURE_SUCCESS (rv, rv);
1544- }
1545-
1546- // fall through to the next upgrade
1547- MOZ_FALLTHROUGH ;
1548-
1549- case 10 : {
1550- // Filter out the rows with storage access API permissions with a
1551- // granted origin, and remove the granted origin part from the
1552- // permission type.
1553- rv = mDBConn ->ExecuteSimpleSQL (NS_LITERAL_CSTRING (
1554- " UPDATE moz_perms "
1555- " SET type=SUBSTR(type, 0, INSTR(SUBSTR(type, INSTR(type, '^') + "
1556- " 1), '^') + INSTR(type, '^')) "
1557- " WHERE INSTR(SUBSTR(type, INSTR(type, '^') + 1), '^') AND "
1558- " SUBSTR(type, 0, 18) == \" storageAccessAPI^\" ;" ));
1559- NS_ENSURE_SUCCESS (rv, rv);
1560-
15611542 rv = mDBConn ->SetSchemaVersion (HOSTS_SCHEMA_VERSION );
15621543 NS_ENSURE_SUCCESS (rv, rv);
15631544 }
0 commit comments