How to prevent Chrome and Brave browsers from issuing a Browser notification after javascript removes an item from sessionStorage

As far as I can tell this browser behaviour is new.

I have searched using Google, Bing and Brave Search and can find no trace of the behaviour being documented.

When javascript computationally removes an item from sessionStorage, the browser drops a notification:

[Site] says:

[ItemName] Item removed from sessionStorage

User feedback reveals this notification hinders seamless UX.

One user reported waiting for several minutes before deleting the tab – she didn’t understand the message and she didn’t realise that she needed to press the “OK” button in the bottom right hand corner of the notification to make it go away and enable the page to finish loading.


Example:

sessionStorage.setItem('Test Key', 'Test Value');

setTimeout(() => sessionStorage.removeItem('Test Key'), 300);

/*

It doesn't look like StackSnippets will allow the javascript above.

*/

Is there a way to prevent the browser issuing a notification when javascript removes an item from sessionStorage ?


N.B. This is almost certainly a Blink issue.

I’ve noted that Firefox does not behave in the same manner as Chrome and Brave.