Closed Bug 351253 Opened 18 years ago Closed 18 years ago

Search button misinterprets modifiers when clicked

Categories

(Firefox :: Search, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 alpha2

People

(Reporter: asaf, Assigned: asaf)

References

Details

Attachments

(1 file, 1 obsolete file)

Search button misinterprets modifiers when clicked.

Ctrl+Click on the search button doesn't open the search results in a new tab, Shift+Click (for a new window) doesn't work either. Note alt+click does open the page in a new tab, apparently by accident ;)
Status: NEW → ASSIGNED
Flags: blocking-firefox2?
Priority: -- → P2
This isn't a blocker, but I'd be glad to see a patch in time for RC1.
Flags: blocking-firefox2? → blocking-firefox2-
Whiteboard: [would take patch]
Target Milestone: Firefox 2 → Firefox 3 alpha1
Attached patch patch (obsolete) — Splinter Review
Attachment #245619 - Flags: review?(gavin.sharp)
Comment on attachment 245619 [details] [diff] [review]
patch

>Index: browser/components/search/content/search.xml

>+            if (((aEvent && aEvent.altKey) ^ newTabPref))
>+              where = "tab";

nit: extra parentheses

>       <method name="doSearch">

>+          if (!submission)
>+            return;

Don't check submission here, if this is null then there's a bigger bug that I want to get an exception for (I should probably document this on the interface).

>+          var url = submission.uri.spec;
>+          postData = submission.postData;

Just declare postData here (or even use submission.* directly in the call to openUILinkIn).
Attachment #245619 - Flags: review?(gavin.sharp) → review+
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → Trunk
Attached patch as checked inSplinter Review
mozilla/browser/components/search/content/search.xml 1.92
Attachment #245619 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [would take patch]
Target Milestone: Firefox 3 alpha1 → Firefox 3 alpha2
Depends on: 363011
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: