Closed Bug 554400 Opened 14 years ago Closed 14 years ago

Convert search.xml to use api from bug 545714

Categories

(Firefox :: Search, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: enndeakin, Assigned: enndeakin)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
      No description provided.
Attachment #434288 - Flags: review?(rflint)
Can we add a test for search bar dropping, too?
Attachment #434288 - Flags: review?(rflint)
Attached patch version 2 (obsolete) — Splinter Review
That previous patch was completely wrong. Here is the real version.
Attachment #434288 - Attachment is obsolete: true
Attachment #434860 - Flags: review?(gavin.sharp)
Comment on attachment 434860 [details] [diff] [review]
version 2

This patch applied on top of attachment 434292 [details] [diff] [review] seems to break drag-to-search (the text is dropped but no search is triggered). search.xml's drop handler just isn't called.

The test should probably cover that... I guess that's a bit of a pain since you'd need a search engine that doesn't hit the network, but you can do that relatively easily the same way e.g. browser_415700.js does. You should probably also do the test in a new tab to avoid interfering with other tests.
Attachment #434860 - Flags: review?(gavin.sharp) → review-
Looks like there is also a dependency on the patch in bug 539476 as well. Otherwise the default editor listener will respond instead. This is likely why the original code used a capturing listener. The patch in bug 539476 changes the editor listeners to respond during the system group phase so that they act more like default handlers.
Depends on: 539476
Comment on attachment 434860 [details] [diff] [review]
version 2

OK, r=me with the test changes (doing the test in a new tab at the very least, since as it is now the test causes a load of Google and doesn't clean it up).
Attachment #434860 - Flags: review- → review+
Attached patch version 3Splinter Review
Adjust test to check if the search starts a load. Uses an existing test which already creates some new tabs.
Attachment #434860 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/d9c5998f3e41
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
i suppose we can dupe Bug 545122 to this one(?)...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: