Write C++ patch to replace external applications helper dialog workaround
Part of our deliverable should be to get rid of out clumsy attempts to hook the external applications helper dialog. We should patch the Mozilla code instead doing trying to fix that from extensions land. This might avoid legacy/trac#18090 (moved) and other weird side-effects.