Bug 72670

Summary: preserve attributes of overriden properties
Product: [Applications] konqueror Reporter: Harri Porten <porten>
Component: kjsAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Harri Porten 2004-01-15 00:07:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Attributes of overriden properties should be preserved. Like the DontEnum in this case:

function pop() { }
Array.prototype.pop = pop;
var arr = ["RoundUp"];
var str = "";
for (val in arr) {
  str += val + " ";
}
alert(str);

Possible solution: in ObjectImp::put(), don't use canPut() but do our own checking. If the attribute already exist reuse the attribute.
Comment 1 Jaime Torres 2008-07-15 20:30:46 UTC
I get a "0 pop" message box in konqueror 4.0.4 and svn trunk 831729
Only "0" in firefox 3 and Opera 9.5.

What is the good solution?
Comment 2 Maksim Orlovich 2010-06-05 21:46:58 UTC
I think I've just fixed this, r1134932 (actually showed up in a website)