Patch forthcoming.
Created attachment 30721 [details] patch ^^^^
Attempted landing in r44221, but had trouble with two tests: fast/events/open-window-from-another-frame.html fast/events/popup-blocking-click-in-iframe.html I'll revert and investigate.
Landed slightly tweaked version in r44225.