Bug 16295 - some special properties on window object have different lookup order from IE and Firefox
Summary: some special properties on window object have different lookup order from IE ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-12-04 12:50 PST by Feng Qian
Modified: 2007-12-04 21:05 PST (History)
1 user (show)

See Also:


Attachments
test (629 bytes, text/html)
2007-12-04 15:58 PST, Feng Qian
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Feng Qian 2007-12-04 12:50:46 PST
If a frame whose name is 'location', window.location returns the iframe object, IE7 and FF2 both return the Location object. Haven't tested other property names. A related bug is 16154.
Comment 1 Feng Qian 2007-12-04 15:58:25 PST
Created attachment 17707 [details]
test

I wrote a little problem to test the lookup order of a name on window object.

IE7 has a lot less enumerable properties than Firefox and Safari, and put all 'default' properties ahead of frame names in lookup order;