In Firefox 106.0.4 (in Mac), when doing window.location.hash = ''
in the console for a normal URL e.g. https://example.com/, the browser automatically adds # sign to the end of the URL https://example.com/#. The behaviour does not occur in Chrome or Safari. In other browsers, the URL remains the same.
Is it a bug or a feature in Firefox?