I’ve encountered the same problem. Our extension needs to remove the CSP header on YouTube. The solution was to add resourceTypes: ['main_frame'] to the condition, otherwise the rule didn’t match.
resourceTypes: ['main_frame']
condition