Closed Bug 1126511 Opened 9 years ago Closed 9 years ago

update Yahoo search plugins to use per-access point tags for better reporting/analysis

Categories

(Firefox :: Search, defect)

33 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 38
Tracking Status
firefox36 --- fixed
firefox37 --- fixed
firefox38 --- fixed

People

(Reporter: mconnor, Assigned: mconnor)

References

Details

Attachments

(3 files)

Attached patch YahooSAPDesktopSplinter Review
      No description provided.
Attachment #8555492 - Flags: review?(gavin.sharp)
Attachment #8555492 - Flags: feedback?(kev)
Attached patch YahooSAPMobileSplinter Review
Attachment #8555493 - Flags: review?(margaret.leibovic)
Attachment #8555493 - Flags: feedback?(mark.finkle)
Comment on attachment 8555493 [details] [diff] [review]
YahooSAPMobile

>diff --git a/mobile/locales/en-US/searchplugins/yahoo.xml b/mobile/locales/en-US/searchplugins/yahoo.xml

>+<!-- phone search -->
>+<Url type="text/html" method="GET" template="https://search.yahoo.com/yhs/search" rel="searchform">

Do we need the rel="searchform" here?

>+https://search.yahoo.com/yhs/search?hspart=mozilla&hsimp=yhs-001&p=flowers

Remove?

>+<!-- Tablet Search activity -->
>+<Url type="application/x-moz-tabletsearch" method="GET" 
>+     rel="mobile" template="https://search.yahoo.com/yhs/search">

I don't know if the search activity supports phone vs tablet yet. I defer to Margaret for the answer on that.
Attachment #8555493 - Flags: feedback?(mark.finkle) → feedback+
Depends on: 1126698
Depends on: 1126700
Attachment #8555492 - Flags: review?(gavin.sharp) → review+
(In reply to Mark Finkle (:mfinkle) from comment #2)
> Do we need the rel="searchform" here?

Yeah, needed to replace the <SearchForm> being removed.
Comment on attachment 8555493 [details] [diff] [review]
YahooSAPMobile

Review of attachment 8555493 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/locales/en-US/searchplugins/yahoo.xml
@@ +30,3 @@
>  </Url>
> +<!-- phone Search activity -->
> +<Url type="text/html" method="GET" rel="mobile" template="https://search.yahoo.com/yhs/search">

I filed bug 1126700 about this rel="mobile" attribute being totally unintuitive.

@@ +36,5 @@
> +  <Param name="p"  value="{searchTerms}" />
> +</Url>
> +<!-- Tablet Search activity -->
> +<Url type="application/x-moz-tabletsearch" method="GET" 
> +     rel="mobile" template="https://search.yahoo.com/yhs/search">

I filed bug 1126698 about supporting this. No harm in including it now, but it just won't do anything.
Attachment #8555493 - Flags: review?(margaret.leibovic) → review+
https://hg.mozilla.org/mozilla-central/rev/277ebbb08a47
https://hg.mozilla.org/mozilla-central/rev/fc3187087797
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 36 → Firefox 38
The tool I use to track p12n error in localizations started nagging about Yahoo on /mobile
https://l10n.mozilla-community.org/~flod/p12n/errors/?product=mobile

I think it's right
https://hg.mozilla.org/mozilla-central/raw-file/277ebbb08a47/mobile/locales/en-US/searchplugins/yahoo.xml

XML Parsing Error: non well-formed
Location: https://hg.mozilla.org/mozilla-central/raw-file/277ebbb08a47/mobile/locales/en-US/searchplugins/yahoo.xml
Line number 23, column 57:https://search.yahoo.com/yhs/search?hspart=mozilla&hsimp=yhs-001&p=flowers
--------------------------------------------------------^

Can someone check if the searchplugin is actually working? I'd be surprised.
Flags: needinfo?(mconnor)
Review comment from comment 2 was not addressed.

We really need bug 997485!

I fixed this on central:
https://hg.mozilla.org/mozilla-central/rev/5a1359495c04
It was initially, and then after the backout I re-imported the bugzilla patch, not the actual commit. +1 on testing.

(I owe Gavin a beer.)
Flags: needinfo?(mconnor)
Comment on attachment 8555492 [details] [diff] [review]
YahooSAPDesktop

Approval Request Comment
[Feature/regressing bug #]:
[User impact if declined]:
[Describe test coverage new/current, TreeHerder]: has comprehensive test coverage on correct URL formation in all cases
[Risks and why]: basically zero
[String/UUID change made/needed]: none
Attachment #8555492 - Flags: feedback?(kev)
Attachment #8555492 - Flags: approval-mozilla-beta?
Attachment #8555492 - Flags: approval-mozilla-aurora?
Comment on attachment 8555493 [details] [diff] [review]
YahooSAPMobile

Approval Request Comment
[Feature/regressing bug #]:
[User impact if declined]:
[Describe test coverage new/current, TreeHerder]:
[Risks and why]:  minimal (assuming correct version is checked in)
[String/UUID change made/needed]:

This is needed as part of making Yahoo default on Android in Fx36
Attachment #8555493 - Flags: approval-mozilla-beta?
Attachment #8555493 - Flags: approval-mozilla-aurora?
Comment on attachment 8555493 [details] [diff] [review]
YahooSAPMobile

>+https://search.yahoo.com/yhs/search?hspart=mozilla&hsimp=yhs-001&p=flowers

This looks like a line that was pasted to pull out the required parameters. Is this URL supposed to be included in the patch?
Flags: needinfo?(mconnor)
No, I'll land or attach the corrected version.
Flags: needinfo?(mconnor)
Comment on attachment 8555492 [details] [diff] [review]
YahooSAPDesktop

Safe patch to improve our search metrics. Beta+ Aurora+
Attachment #8555492 - Flags: approval-mozilla-beta?
Attachment #8555492 - Flags: approval-mozilla-beta+
Attachment #8555492 - Flags: approval-mozilla-aurora?
Attachment #8555492 - Flags: approval-mozilla-aurora+
Comment on attachment 8555493 [details] [diff] [review]
YahooSAPMobile

Safe patch for mobile search metrics. Beta+ Aurora+

Note to sheriffs - mconnor has an updated patch that needs to be landed instead of this one as per comment 15.
Attachment #8555493 - Flags: approval-mozilla-beta?
Attachment #8555493 - Flags: approval-mozilla-beta+
Attachment #8555493 - Flags: approval-mozilla-aurora?
Attachment #8555493 - Flags: approval-mozilla-aurora+
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: