Closed Bug 464532 Opened 16 years ago Closed 3 years ago

window.self must be readonly

Categories

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

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: mash, Unassigned)

References

()

Details

(Keywords: html5)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3 XPCOMViewer/1.0a1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3 XPCOMViewer/1.0a1

<script>
try {
  window.self = 1;
} catch(e) {}//IE error
alert([window.self == window, typeof(window.self)])
</script>

Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081105 Minefield/3.1b2pre
  false, number
Safari Version 3.1.2 (5525.20.1)
  false, number
Opera 9.62 build 5256
  true, object
IE 7.0.5730.13
  (catched error) true, object

Reproducible: Always

Steps to Reproduce:
1.js: window.self = 1; alert(window.self == window)
Actual Results:  
false

Expected Results:  
1. Error: setting a property that has only a getter
2. true
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
HTML5 says window.self should be readonly and return window.
Status: UNCONFIRMED → NEW
Component: DOM → DOM: Core & HTML
Ever confirmed: true
Keywords: html5
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5

It's also marked [Replaceable], so not quite readonly.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.