Comment 50 for bug 306017

Revision history for this message
In , Adam Dane (unusualtears) wrote :

Created attachment 624244
WIP v5: frontend: Enable getting search data for new window via its opener.

The opener-based searchData code is specifically for sites that use |window.open()| when the user does not have new windows redirected to tabs. The updated backend patch is to support that by setting the proper flag, only if called from JS.

This also allows for tab drag/drop between windows to carry the search data with the tab, and it makes initial changes toward removing the nsSearchService's currentEngine, as that loses meaning now that multiple windows and tabs have different engines.

The tests will need to be reworked when nsSearchService's currentEngine goes away, along with the observer notification for when currentEngine changes.