Expose information to ignore notifications in case of data corruption
Background
In case of a data corruption, the extension may not be able to remember whether a notification has been shown already. Therefore we should ignore notifications in case we are aware of a data corruption.
See https://gitlab.com/eyeo/adblockplus/abpui/adblockplusui/-/issues/829.
What to change
Instruct adblockpluscore to ignore notifications (set notifications.ignored = true
whenever we detect data corruption.
Hints for testers
In the extension, you can call setDataCorrupted(true)
in lib/subscriptionInit.js in order to tell the extension that there is a data corruption. Any code that's running after that, will assume that a data corruption is present and should behave accordingly (e.g. data corruption notification should be shown).
Edited by Thomas Greiner