Bug 36631 adds the ability to call JS in response to NPP_SetWindow in the test plugin. We should deprecate the testWindowOpen attribute in favor of this new technique. I think just one test uses it: LayoutTests/plugins/window-open.html