Closed Bug 385992 Opened 17 years ago Closed 10 years ago

Amazon.com - Javascript Popout fails to load in Camino, works in Firefox

Categories

(Web Compatibility :: Site Reports, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: michael.k.tung, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.4) Gecko/20070509 Camino/1.5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.4) Gecko/20070509 Camino/1.5

If you browse to the above mention sites using Firefox or Safari and moving the cursor over the products, you should be able to see a popout window of the product from Amazon. However, using Camino it the popout fails to load even if I uncheck block on web advertising and block popups. 

Reproducible: Always

Steps to Reproduce:
1.Go to http://tinyfish.net/?p=12 or http://www.gpslodge with Firefox
2.Move cursor over the products such as FREE Sierra Wireless 875U Card, it will show an Amazon popout via Javascript in Firefox when the cursor is over the images or text.
3.Go to http://tinyfish.net/?p=12 or http://www.gpslodge with Camino
4.Move cursor in Camino over the same products, it does NOT show a Amazon popout even with unchecking all block in the preferences.
 
Actual Results:  
Camino does NOT show Amazon Javascript popout in the above mention webpages. Firefox doe SHOW Amazon Javascript popout in the above mention webpages.

Expected Results:  
Camino should SHOW the Amazon Javascript even if the all blocks are checked in Preferences.
Yeah, this is undoubtedly a TE bug. Kicking this over there where it belongs.
Assignee: nobody → english-us
Component: Annoyance Blocking → English US
Product: Camino → Tech Evangelism
QA Contact: annoyance.blocking → english-us
And this should probably be split into two different TE bugs, since two different sites are involved here (although I didn't bother to investigate whether the JS is all coming from Amazon or if there are really two different bugs here). I will confirm it, though -- I can easily repro the problem on tinyfish and fix the problem by spoofing as Firefox.

(Whether those popups are *desirable* is another matter entirely, but the larger point that Camino should be served the same code as Firefox is still valid.)

cl
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Amazon Javascript Popout fail to load → Amazon.com - Javascript Popout fails to load in Camino, works in Firefox
On tinyfish, the problem ultimately comes from this Amazon file: http://www.assoc-amazon.com/s/link-enhancer-common.js

    // Do not decorate links in unsupported browsers
    var amazonTreatment = false;
    var agent = new String(navigator.userAgent);
    if (agent.match(/(MSIE.*Windows|Firefox|Netscape|Windows.*Gecko|Safari\/)/))
    {
        amazonTreatment = true;
    }
Blocks: geckoisgecko
I pretty new to JS, please forgive me if I don't really know what I am talking about. 

Based on Smokey review of the Amazon JS file, could it be the agent.match be the problem as there is no "match" or variable for Camino? 

Is there a fix around for this?
Yeah, that's pretty much exactly what Smokey is saying :)

The "fix" for end-users is to spoof as Firefox. The real fix is for Amazon to stop writing shitty code, which is why this was moved to Tech Evangelism :)
LOL, I agree on the **** code by Amaxon ;) many thanks!
RIP Camino. This bug are now WONTFIX.
Status: NEW → RESOLVED
Closed: 10 years ago
Component: English US → Desktop
Resolution: --- → WONTFIX
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.