Skip to content

Commit fd4952c

Browse files
authored
fix: block notification permission dialogs via Chrome policy (#105)
## Summary - Add `DefaultNotificationsSetting: 2` Chrome policy to automatically deny all notification permission requests - Prevents "site wants to show notifications" dialogs from appearing in the automated browser environment ## Test plan - [ ] Deploy updated chromium-headful image - [ ] Navigate to a site that requests notification permissions (e.g., yahoo.com) - [ ] Verify no notification permission dialog appears <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Sets Chrome policy `DefaultNotificationsSetting: 2` to automatically deny all notification permission prompts. > > - **Policies**: > - Update `shared/chromium-policies/managed/policy.json`: > - Add `DefaultNotificationsSetting: 2` to auto-deny site notification permission requests. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 94a7d12. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 008ece0 commit fd4952c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"PasswordManagerEnabled": false,
33
"AutofillCreditCardEnabled": false,
4-
"TranslateEnabled": false
4+
"TranslateEnabled": false,
5+
"DefaultNotificationsSetting": 2
56
}

0 commit comments

Comments
 (0)