Closed
Bug 36948
Opened 25 years ago
Closed 24 years ago
redeclaration of document.URL using __defineGetter__
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
People
(Reporter: norrisboyd, Assigned: rogerl)
Details
(Keywords: js1.5)
Subject:
BUG: redeclaration of document.URL using __defineGetter__
Date:
Fri, 21 Apr 2000 17:14:08 +0300
From:
Georgi Guninski <joro@nat.bg>
To:
Norris Boyd <norris@netscape.com>
It is possible to redeclare document.URL using __defineGetter__ (it is
impossible with normal getter).
The code is:
-----------------------------------------------------
<HTML>
<SCRIPT>
// document.URL getter = function() { return "http://www.yahoo.com"} //
This gives the error "redeclaration of const. URL"
document.__defineGetter__("URL",function() {return
"http://www.yahoo.com"} );
alert("document.URL="+document.URL);
</SCRIPT>
</HTML>
-----------------------------------------------------
Comment 1•25 years ago
|
||
D'oh -- JS2 syntax does not include getter=, wherefore __defineGetter__, which I
forgot about completely. That needs to call OBJ_CHECK_ACCESS(... JSACC_WATCH..)
too, a la the interpreter JSOP_GETTER:JSOP_SETTER: case.
/be
Comment 2•25 years ago
|
||
Bulk reassigning most of norris's bugs to mstoltz.
Assignee: norris → mstoltz
Assignee | ||
Comment 3•25 years ago
|
||
engine issue...
Assignee: mstoltz → rogerl
Component: Security: General → Javascript Engine
QA Contact: junruh → pschwartau
Comment 4•24 years ago
|
||
I believe I fixed this already. Someone please verify.
/be
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 6•24 years ago
|
||
*** This bug has been marked as a duplicate of 44013 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•