Closed
Bug 579119
Opened 14 years ago
Closed 14 years ago
Amazon 'Lightning Deals' are not visible on 4.0 betas
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronmt, Assigned: kev)
References
()
Details
(Keywords: regression, Whiteboard: [Input])
Attachments
(1 file)
140.77 KB,
image/png
|
Details |
No description provided.
Reporter | ||
Comment 1•14 years ago
|
||
Amazon's lightning deals are not visible on Trunk. Tested on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; en-US; rv:2.0b2pre) Gecko/20100715 Minefield/4.0b2pre, and caught via Firefox Input statements http://input.mozilla.com/search/?q=amazon+lightning&product=firefox
Summary: Amazon → Amazon 'Lightning Deals' are not showing on Trunk
Reporter | ||
Updated•14 years ago
|
Summary: Amazon 'Lightning Deals' are not showing on Trunk → Amazon 'Lightning Deals' are not visible on 4.0b1
Reporter | ||
Updated•14 years ago
|
Keywords: regression,
regressionwindow-wanted
Reporter | ||
Comment 2•14 years ago
|
||
Reporter | ||
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Comment 3•14 years ago
|
||
Regression range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b7f3c1c9fb57&tochange=a5e1b195ecf7
The main culprit visible there is the TM merge.... Going to see whether that's it.
Comment 4•14 years ago
|
||
This is a site bug. The error console says:
Error: assignment to undeclared variable Deal
Source File: http://z-ecx.images-amazon.com/images/G/01/goldbox/client-side/gbld_js-v1._V210760631_.js
Line: 368
(and in a debug build this is in fact flagged as a strict mode error). The checkin range includes this bug:
Jim Blandy — Bug 514560: Forbid assignments to undeclared variables in strict
mode code. r=jorendorff
and the script in question in fact does "use strict;" and has this lovely code starting on line 366:
if (!window.Deal) {
(function(){
Deal = {};
...
)();}
which is in fact something that should throw in strict mode.
Assignee: nobody → english-us
Blocks: 514560
Component: Layout → English US
Keywords: regressionwindow-wanted
Product: Core → Tech Evangelism
QA Contact: layout → english-us
Version: Trunk → unspecified
Reporter | ||
Comment 5•14 years ago
|
||
Still not visible in 4.0b5pre Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b6pre) Gecko/20100905 Firefox/4.0b6pre
Reporter | ||
Comment 6•14 years ago
|
||
Still not visible in 4.0b5pre Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b6pre) Gecko/20100905 Firefox/4.0b6pre
Summary: Amazon 'Lightning Deals' are not visible on 4.0b1 → Amazon 'Lightning Deals' are not visible on 4.0 betas
Comment 7•14 years ago
|
||
Fwiw, I did send comments to Amazon (as a user), as well as contacting the people I know who work at Amazon. No response to the former so far, and the latter are trying to find the right people to talk to.
Comment 8•14 years ago
|
||
Boris, if your friends could inquire about the origin of this "use strict"; in case it came from some open source tool, or perhaps was based on bad advice in some public doc repository we could try to fix, that would be helpful.
/be
Comment 9•14 years ago
|
||
The origin is obvious is you look at http://z-ecx.images-amazon.com/images/G/01/goldbox/client-side/gbld_js-v1._V210760631_.js -- that file is the concatenation of several third-party and Amazon JS files, and the very first one is http://www.JSON.org/json2.js which (correctly) uses strict. Then one of the Amazon files that comes after it isn't actually strict-mode compliant.
This concatenation pattern is not really compatible with how "use strict" is designed.
Comment 10•14 years ago
|
||
Is anyone trying to contact amazon.com about this? They are headed into even more pain, esp. if IE9 implements strict mode.
/be
Comment 11•14 years ago
|
||
I've been trying since comment 7. Sent 2 or 3 reports via their website, and my friend has been trying to get someone to respond to. It's been a black hole so far.
Comment 12•14 years ago
|
||
(In reply to comment #11)
> I've been trying since comment 7. Sent 2 or 3 reports via their website, and
> my friend has been trying to get someone to respond to. It's been a black hole
> so far.
I just pinged a contact there as well. Hopefully between the two of us we get somewhere.
Comment 13•14 years ago
|
||
My contact has filed a bug about it in their tracker, and will keep me posted. Likewise, I'll report back here.
Comment 14•14 years ago
|
||
Apparently there are several tickets on this. It's on the team's radar, but no ETA on a fix yet.
Comment 15•14 years ago
|
||
This is actually getting mentioned as a reason people are switching away from Firefox at http://lifehacker.com/5711040/browser-speed-tests-ie-9-firefox-4-beta-chromes-crankshaft-and-opera-11-beta
Updated•14 years ago
|
Assignee: english-us → kneedham
Comment 16•14 years ago
|
||
Kev,
Can you please reach out to your contacts at Amazon. I pinged our contact as well. thanks /hja
Assignee | ||
Updated•14 years ago
|
Assignee: kneedham → kev
Comment 17•14 years ago
|
||
From the webkit tracker -- https://bugs.webkit.org/show_bug.cgi?id=48377
Comment #27 From Evan Martin 2010-12-09 14:11:36 PST (-) [reply]
Amazon contact says they're planning to work on it in January.
Although i find myself wondering how much work is required to remove a single string that has no side effects other than breaking the site...
Comment 18•14 years ago
|
||
My guess would be a production code freeze during the traffic spike.
Comment 19•14 years ago
|
||
Getting a major e-tailer to make a change to their site during the nov-dec hypershopping season is basically impossible. If it doesn't expose them to huge liability or cost them a ton of money, it doesn't work from a risk calculus perspective, and I have a hard time faulting them for it.
Comment 20•14 years ago
|
||
(In reply to comment #19)
> Getting a major e-tailer to make a change to their site during the nov-dec
> hypershopping season is basically impossible. If it doesn't expose them to
> huge liability or cost them a ton of money, it doesn't work from a risk
> calculus perspective, and I have a hard time faulting them for it.
Perhaps this was correct. They apparently fixed their code this morning, as the lightning deals now appear for me on Beta 8.
http://tinypic.com/view.php?pic=2mnkbc3&s=7
Comment 21•14 years ago
|
||
(In reply to comment #4)
> http://z-ecx.images-amazon.com/images/G/01/goldbox/client-side/gbld_js-v1._V210760631_.js
> if (!window.Deal) {
> (function(){
> Deal = {};
Site seems to be using this file now:
http://z-ecx.images-amazon.com/images/G/01/goldbox/client-side/gbld_js-v39._V174650570_.js
if (!window.Deal) {
(function(){
window.Deal = {};
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 22•14 years ago
|
||
Note that Amazon's fix for this was inadequate, because the rest of the concatenated file isn't fully strict mode-safe. See bug 627531 for the second instance, which could very well not be the last one, although one hopes it is. :-\
See Also: → 627531
Comment 23•14 years ago
|
||
To make things worse: The German Amazon website still uses the old version of the script that produces the error. So I tried the approach of Comment 7 and emailed them about the issue. Let's hope they come up with a "real" fix some day.
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•