Closed Bug 189494 Opened 22 years ago Closed 22 years ago

'var frames;' can be declared, but does not override Document.frames (was: Comes up with blank screen)

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.3final

People

(Reporter: h.boogaers, Assigned: jst)

References

()

Details

(Whiteboard: [HAVE FIX] [See comment 4])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212 The page http://www.neder-l.nl takes almost no time to load. It comes up blank. It should come up with general info about the site. Reproducible: Always Steps to Reproduce: 1. Go to URL http://www.neder-l.nl 2. 3. Actual Results: Blank screen Expected Results: SHould have shown general information about the site Neder-l
This cite use variable frames in a way of: var frames = '<FRAMESET ROWS="70,*">' (this assignement could not be executed).
Fixed on January 10th, 2003. Please download a newer build. *** This bug has been marked as a duplicate of 187790 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
confirming using build 20030117 on Linux.
Status: RESOLVED → UNCONFIRMED
OS: Windows XP → All
Hardware: PC → All
Resolution: DUPLICATE → ---
Hmmm.... further investigation shows that there's more in this bug than that. Changins summary and reopening. The problem is, var frames = '<FRAMESET ROWS="70,*">' is supposed to define local variable called "frames" and assign value to it. Instead, we get the error: ----------------------------------------- Error: setting a property that has only a getter Source File: http://www.neder-l.nl/ Line: 54 ----------------------------------------- While we should either a) let them do so because the variable name overrides property name in this scope, or b) complain that the variable defined uses a reserved word (property name), etc.
Component: Browser-General → JavaScript Engine
Summary: Comes up with blank screen → Locally defined variables do not override properties (was: Comes up with blank screen)
Whiteboard: [See comment 4]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Locally defined variables do not override properties (was: Comes up with blank screen) → 'var frames;' can be declared, but does not override Document.frames (was: Comes up with blank screen)
I sure hope you're not going to deviate from what 90% of the browser users expect: to see a page when they select it's URL. So, not handling this as an error is, imho, the only way.
|frames|, i.e. |window.frames|, is an in-built DOM object, not a JS Engine object. ---> DOM Level 0
Assignee: asa → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: asa → desale
Status: NEW → ASSIGNED
Flags: blocking1.3?
Keywords: 4xp
Priority: -- → P2
Whiteboard: [See comment 4] → [HAVE FIX] [See comment 4]
Target Milestone: --- → mozilla1.3final
Attachment #113541 - Flags: superreview?(peterv)
Attachment #113541 - Flags: review?(bugmail)
Attachment #113541 - Flags: superreview?(peterv) → superreview+
Comment on attachment 113541 [details] [diff] [review] Make window.frames replaceable. got r=fabian over email. He had just one comment: Please add 'This property is "replaceable" in JavaScript' in a comment in nsIDOMJSWindow or in nsIDOMWindow or in both.
Attachment #113541 - Flags: review?(bugmail) → review+
Comment on attachment 113541 [details] [diff] [review] Make window.frames replaceable. This is a lowrisk fix that would make more websites work (although most likely not a huge number). Should be absolutely safe for 1.3final.
Attachment #113541 - Flags: approval1.3?
Comment on attachment 113541 [details] [diff] [review] Make window.frames replaceable. a=asa (on behalf of drivers) for checkin to 1.3 final.
Attachment #113541 - Flags: approval1.3? → approval1.3+
FIXED. Added a comment to nsIDOMJSWindow.idl as well.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
Flags: blocking1.3?
Verified fixed 2003021908/NT4. The example site is now properly displayed. Yay!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: