The bug
I'm only reporting this issue because it doesn't seem to make sense. If you light bedrock with flint and steel and you are given an item with CanDestroy
bedrock tag, in adventure mode, hitting the bedrock will not destroy the bedrock (as intended) but will destroy the fire.
To reproduce
Place bedrock block
Light block on fire
Switch to adventure mode
Input this code:
/give @p cod{CanDestroy:["bedrock"]}
Attempt to break bedrock.
See how the fire gets destroyed even though bedrock cannot be destroyed
Unbreakable blocks also affected:
Barriers, End Portal Frames, Command Blocks
Linked issues
relates to
Comments

Confirmed for 1.13.1.

Relates to MC-147708

Fixed in 20w10a.
Confirmed for 1.8.2-pre1