Closed Bug 437158 Opened 16 years ago Closed 16 years ago

Update add-on install links and service

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: fligtar, Assigned: fligtar)

References

Details

Attachments

(2 files)

See bug 433408 comment 14

The new Get Personal page needs to have the Install Now links use an install trigger via the AMO install service. This requires bug 389037 to be fixed first.
Flags: blocking-firefox3?
We decided to go ahead and link to static versions and when bug 389037 is fixed, we'll switch. I'll attach the patches shortly.

Note that LinkedIn Toolbar does not yet have a Firefox 3 compatible version on AMO, so we link to the add-on's display page. PicLens has different .xpi's for different platforms, so we also link to their display page.
Blocks: 433408
Status: NEW → ASSIGNED
No longer depends on: 389037, 433408
Attachment #323800 - Flags: review?(clouserw)
Attached patch patch for AMOSplinter Review
Attachment #323801 - Flags: review?(clouserw)
Comment on attachment 323800 [details] [diff] [review]
patch for mozilla.com fx 3 branch

>+    // AMO URLs used on this page
>+    $install_url = "https://addons.mozilla.org/services/install.php?addon_id=";
>+    $display_url = "https://addons.mozilla.org/{$lang}/firefox/addon/";

Should be using https://<?=$lang?>.add-ons.mozilla.com/... for both of these.

> 				<li><a href="http://www.mozilla.com/en-US/add-ons/ebay/features.html">View the Tutorial</a></li>

I know it's not your fault, but can you change that to use "/<?=$lang?>/add-ons/ebay/features.html", please?

>+			<a href="https://addons.mozilla.org/<?=$lang?>/firefox/"><img src="/img/tignish/add-ons/getpersonal/icon-more.png" alt="Get More Add-ons" height="100" width="150" /></a>

https://<?=$lang?>.add-ons.mozilla.com/<?=$lang?>/firefox/, please.
Attachment #323800 - Flags: review?(clouserw) → review-
Comment on attachment 323800 [details] [diff] [review]
patch for mozilla.com fx 3 branch

I discussed this with Wil, and we decided to use addons.mozilla.org links.
Attachment #323800 - Flags: review- → review?(clouserw)
Attachment #323800 - Flags: review?(clouserw) → review+
Comment on attachment 323801 [details] [diff] [review]
patch for AMO

It seems like this regex is vulnerable to something like a referrer like https://mozilla.com.evilhost.com or https://localhost.evil.com/

r+ because this isn't a new thing though
Attachment #323801 - Flags: review?(clouserw) → review+
like
Thanks for the review.

I committed the AMO patch, but don't have commit access to the mozilla.com firefox 3 branch, so can you check it in for me Wil?

First, you'll need to revert reed's change to customize/getpersonal/index.html since he decided to change all the same lines while we were discussing the URL issue, causing 14 conflicts with my patch that was actually reviewed.

svn merge -r HEAD:14726 index.html
Be nice, fligtar.

Sending        en-US/firefox/customize/getpersonal/index.html
Transmitting file data .
Committed revision 14736.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
The patch that you checked in is not the patch that I submitted, it's not the patch that was reviewed, and it's not using the URL format that I, clouserw, and morgamic all said we would prefer in IRC.

It really encourages me to work on mozilla.com bugs like this.
Flags: blocking-firefox3? → blocking-firefox3+
Verified FIXED, since I've already verified that this functionality works over in bug 433408.
Status: RESOLVED → VERIFIED
(In reply to comment #10)
> The patch that you checked in is not the patch that I submitted, it's not the
> patch that was reviewed, and it's not using the URL format that I, clouserw,
> and morgamic all said we would prefer in IRC.
> 
> It really encourages me to work on mozilla.com bugs like this.
Reed - don't ever do this again.  If you do, you won't have commit access to mozilla.com anymore.
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: