When opening a link like the following in a "new tab" tab in Chrome or Firefox, and then closing it, results in the page being departed from entirely. The expected behaviour is to return to the article (even if the user wasn't on the article prior).
- Use Chrome or Firefox
- In any empty window or tab, paste the url https://en.wikipedia.org/wiki/Stadsschouwburg#/media/File:Stadsschouwburg,_Amsterdam_2333.jpg and navigate there.
- After it loads, press the Close button.
The most common way that I encounter this bug is when re-opening a page from the browser history, to continue where I left off. Or, when switching browser profiles.
I rarely encounter these as normally shared URLs, although that does happen sometimes as well. I find that in social media and instant messaging, the most common way I see images shared is through the MMV urls.
I notice that whenever this problem happens, the title in the browser window is different from when it works as expected.
When it works as expected (the image can be closed and focus returns to the article), then prior to closing the image, the browser window title is that of the image file name.
When it fails (closing the image results in the browser tab being emptied entirely), then the browser window title was that of the article instead. E.g. opening https://en.wikipedia.org/wiki/Stadsschouwburg#/media/File:Stadsschouwburg,_Amsterdam_2333.jpg in a new window results in the window title being "Stadsschouwburg - Wikipedia". Opening the article instead and selecting the image, then the title is "Stadsschouwburg, Amsterdam 2333 - Stadsschouwburg - Wikipedia".