Closed
Bug 593963
Opened 14 years ago
Closed 14 years ago
Change Location Selection on intel.com is broken
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: scoobidiver, Unassigned)
References
()
Details
Build : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100906 Firefox/4.0b6pre
Steps to reproduce :
1. Go to the ref URL
2. Hover the mouse over one of the region
Results :
Nothing is displayed in "select a location and language" pane and in the "Intel worldwide" map
Expected results :
The "select a location and language" pane and the "Intel worldwide" map are modified according to the selected region.
This issue appeared between beta 4 and beta 5.
Comment 1•14 years ago
|
||
Hmm, disabling the HTML5 Parser does not help.
Keywords: regressionwindow-wanted
Comment 2•14 years ago
|
||
Regression range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c8c886655ea1&tochange=5c5c3bf8dfeb
No parser changes there, but a TM merge.... Will bisect.
Keywords: regressionwindow-wanted
Comment 3•14 years ago
|
||
I'd really like to know how this ended up in Parser instead of, say, General, btw. ;)
Keywords: regressionwindow-wanted
Comment 4•14 years ago
|
||
In Error Console:
Error: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
Source file: http://www.intel.com/sites/js/INTEL.js
Line: 9
Regression window:
Works:
http://hg.mozilla.org/mozilla-central/rev/4192ba38ebee
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b5pre) Gecko/20100819 Minefield/4.0b5pre ID:20100820130619
Fails:
http://hg.mozilla.org/mozilla-central/rev/cbf6e0a17783
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b5pre) Gecko/20100820 Minefield/4.0b5pre ID:20100820190548
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4192ba38ebee&tochange=cbf6e0a17783
Comment 5•14 years ago
|
||
Regression window of TM build:
Works:
http://hg.mozilla.org/tracemonkey/rev/af8d71b0de3b
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100817 Minefield/4.0b4pre ID:20100817043016
Fails:
http://hg.mozilla.org/tracemonkey/rev/27a70c60b48d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100818 Minefield/4.0b4pre ID:20100818065537
Pushlog:
http://hg.mozilla.org/tracemonkey/pushloghtml?fromchange=af8d71b0de3b&tochange=27a70c60b48d
Updated•14 years ago
|
Assignee: nobody → general
Component: HTML: Parser → JavaScript Engine
QA Contact: parser → general
Comment 6•14 years ago
|
||
The first bad revision is:
changeset: 51092:981c0f32ff15
user: Jeff Walden <jwalden@mit.edu>
date: Wed Aug 04 14:39:45 2010 -0700
summary: Bug 514563 - ES5 strict mode: arguments.caller and arguments.callee poison pills. r=dmandelin
And indeed, the error console (which I should've checked, doh!) says:
Error: 'caller', 'callee', and 'arguments' properties may not be accessed on
strict mode functions or the arguments objects for calls to them
Source File: http://www.intel.com/sites/js/INTEL.js
Line: 9
The .js file in question does in fact have "use strict;" at the top, and uses callee all over the place.
Assignee: general → english-us
Component: JavaScript Engine → English US
Product: Core → Tech Evangelism
QA Contact: general → english-us
Version: Trunk → unspecified
Comment 7•14 years ago
|
||
I sent intel mail via their contact form; we'll see how it goes.
Keywords: regression,
regressionwindow-wanted
Updated•14 years ago
|
Updated•14 years ago
|
Summary: No change in display after a selection in a list → Change Location Selection on intel.com is broken
Comment 8•14 years ago
|
||
Eek. Moh, any ideas on finding whoever at (or working on contract for) Intel added "use strict"; to the front of that line?
http://www.intel.com/sites/js/INTEL.js
Cc'ing jresig in case he knows of some popular movement to sprinkle "use strict"; at the front of scripts, even if doing so breaks those scripts.
I agree that this must be a TE bug.
/be
Comment 9•14 years ago
|
||
I'll investigate right away.
Comment 10•14 years ago
|
||
This helped alert our IT folks to this potential problem as "Use Strict" is possibly used in other JavaScript files on our web properties. An effort is underway to scan our source code for all instances of this use.
Many thanks for bringing this to our attention.
- moh
Comment 11•14 years ago
|
||
Douglas Crockford's JSLint.com service tells you to add the "use strict" pragma if you choose the "Good Parts" option. Unfortunately, JSLint says there's nothing wrong with code like this:
/*global window */
"use strict";
function someFun() {
window.alert(arguments.callee);
}
someFun();
Comment 12•14 years ago
|
||
Hi Brendan & Boris,
Your suggested fix of removing "use strict"; was pushed as part of today's publishing job on Intel site.
Many thanks for your help.
-moh
Reporter | ||
Comment 13•14 years ago
|
||
I confirm that it works.
So WFM.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
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
•