Change the ugly title of a new browser window

I’ve made a web extension that opens an HTML file in a new browser window. I’ve specified the <title> element in the HTML file, but it still displays moz-extension://… at the window title with my title added to the end.

Is there a way to remove the file path from the title?