For the Declarative Net Request, we persist an indexed flatbuffer ruleset file on disk when the extension is installed. We should handle the case when the indexed flatbuffer ruleset file is corrupted on disk.
Currently, the extension would not load the declarative ruleset on corruption. We can instead do the following:
- Try to reindex the rules from the JSON rules file.
- If that fails as well, disable the extension.
Let me know if any one has any thoughts regarding this.
It was decided to show a warning if the ruleset failed to load, instead of disabling the extension, since disabling was considered an overkill and corruption of the JSON ruleset file and extension prefs should be managed by components other than DNR.
This should be fixed now.
Comment 1 by karandeepb@chromium.org
, Jun 12 2018