browser.runtime namespace pollution in Safari 15.4

In Safari 15.4 there is a global namespace for "browser" and "browser.runtime". The presence of this in the page context breaks my browser extension which uses a test of "browser.runtime" to infer which context the code is running in.

What is plan for this namespace in the page context?

browser.runtime namespace pollution in Safari 15.4
 
 
Q