Clear Browsing Data doesn't clear extension's data?

44 views
Skip to first unread message

Eric Lawrence

unread,
Aug 20, 2019, 12:50:17 PM8/20/19
to extensions-dev
As far as I can tell, my extension's chrome.storage data (local and sync) are not cleared no matter what the user chooses inside the "Clear Browsing data" dialog box.

Is this expected?

Is there some mechanism that would allow an extension to participate in this UX flow and delete their data when the user attempts to clear their browsing history?

Thanks!

Simeon Vincent

unread,
Aug 20, 2019, 2:25:51 PM8/20/19
to extensions-dev

Yep, that's the expected behavior. I checked in with devlin@ who called out that there's an extension API that does allow you to clear extension data: chrome.browsingData.remove. Note that the RemovalOptions structure allows you to set originTypes.extension = true. Presumably you could use the backing private API to clear extension data in a "Clear Browsing Data" dialog.

https://developer.chrome.com/extensions/browsingData#type-RemovalOptions

Simeon - @dotproto
Extensions Developer Advocate

Reply all
Reply to author
Forward
0 new messages