by skriptimaahinen » Wed Jul 29, 2020 10:36 am
Can confirm the steps do cause both blindspot.fandom.com and wikia.nocookie.net to appear as CUSTOM. But like therube noted, they only appear so. If the options page is refreshed, both are back to TRUSTED.
Additional things:
Right after the permissions change to CUSTOM:
1. If the wikia.nocookie.net is set to DEFAULT and the page is refreshed, it will revert to TRUSTED.
2. If the wikia.nocookie.net is first set to e.g. UNTRUSTED (no refresh) and then to DEFAULT and the page is refreshed, it will be DEFAULT (vanish).
Looks like the problem lies with ui.js:799 getPresetName that fails to correctly compare preset and perms objects, probably due to the opening of the popup which causes the UI.policy to be set again and thus making the perms and preset not to be of same instance. JSON.stringify?
Can confirm the steps do cause both blindspot.fandom.com and wikia.nocookie.net to appear as CUSTOM. But like therube noted, they only appear so. If the options page is refreshed, both are back to TRUSTED.
Additional things:
Right after the permissions change to CUSTOM:
1. If the wikia.nocookie.net is set to DEFAULT and the page is refreshed, it will revert to TRUSTED.
2. If the wikia.nocookie.net is first set to e.g. UNTRUSTED (no refresh) and then to DEFAULT and the page is refreshed, it will be DEFAULT (vanish).
Looks like the problem lies with ui.js:799 getPresetName that fails to correctly compare preset and perms objects, probably due to the opening of the popup which causes the UI.policy to be set again and thus making the perms and preset not to be of same instance. JSON.stringify?