"Return to game" link on drop tables does not work

_RiO_
_RiO_ Posts: 1,047 Chairperson of the Boards
When using the new "Pack info" button on the Steam/PC version of the game, the user's configured default web browser is launched to display the cover pack's drop table webpage. This webpage contains a "Return to game" link that uses a custom protocol handler with a dummy "no operation" marker ([url=marvelpuzzlequest://noop]marvelpuzzlequest://noop[/url]) in an attempt to return to the game.

Expected behavior
The web browser tab is closed and the game is relaunched.

Actual observed behavior
Mozilla Firefox throws up a warning box stating that "this link needs to be opened with an application". The user has to verify that Marvel Puzzle Quest is the selected application (and if not: select it) and then has to confirm the choice by hitting the button labeled "OK". After confirming the choice to process the link using the MPQ application*, Steam will attempt to start a second instance of the game. This will fail and will prompt a dialog box "Failed to start game (app already running)" with an accompanying audio signal. The user has to dismiss the Steam dialog, has to manually close the web browser tab (or the entire browser, if it wasn't open before) and has to manually refocus the game window. Incase the game was running fullscreen, it can only be refocused through the taskbar.

Proposed fix
Integrate the pack's drop rates into a simple popup window inside the game and sidestep this whole sordid mess of trying and failing to interoperate with the user's browser.


*) Sidetrack: The dialog can give permission to Firefox to always directly launch (marvelpuzzlequest://) urls with the game as the selected application, but doing so is a potential security risk, depending on the kinds of functionality exposed through the protocol handler. A web-savvy user will never do this and tempting/training the non-savvy to do this is irresponsible at best.