Bug 183993

Summary: possible case insensitive object treatment
Product: [Applications] konqueror Reporter: Michael Kreitzer <mrgrim>
Component: khtml ecmaAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.2.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: test case

Description Michael Kreitzer 2009-02-11 04:35:41 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Unlisted Binary Package

attached is a test case

The test case defines a simple object that initializes itself with a single property. There are 3 functions that initialize a new instance. The object is called "Sidebar". When initializing a "Sidebar" instance and trying to store it in a variable called "sidebar" the initialization fails. The variable has the type "[object sidebar]" instead of "[object Object]", and the property is undefined. Using any other name for the variable (even "sideBar") works as expected.

I discovered this trying to debug the failure of the Pitchfork MPD Client and was able to reduce the problem to this simple test case. It should be noted that this is a regression. I upgraded straight from kde 3.5.9 to kde 4.2, and the client functions perfectly in 3.5.9.

Thanks,
Michael
Comment 1 Michael Kreitzer 2009-02-11 04:36:46 UTC
Created attachment 31216 [details]
test case
Comment 2 Michael Kreitzer 2009-02-11 04:44:04 UTC
OK, I'm even more confused now. It seems that the name of the object doesn't matter. All that seems to matter is the use of the variable name sidebar. Is this a reserved word?
Comment 3 Maksim Orlovich 2009-02-11 06:40:05 UTC
It's a browser window object property (Mozilla extension). I should make it writeable, I guess.
Comment 4 Michael Kreitzer 2009-02-11 15:14:34 UTC
If it's a mozilla extension then it should be noted that this test case produces the results I was expecting in firefox.
Comment 5 Maksim Orlovich 2009-02-14 19:06:26 UTC
SVN commit 926141 by orlovich:

We want the sidebar property writeable (but also DontEnum)
BUG: 183993


 M  +1 -1      kjs_window.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=926141
Comment 6 Maksim Orlovich 2009-02-14 19:07:23 UTC
SVN commit 926142 by orlovich:

Merged revision 926141:
We want the sidebar property writeable (but also DontEnum)
BUG: 183993

 M  +1 -1      kjs_window.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=926142
Comment 7 Maksim Orlovich 2009-02-14 19:10:11 UTC
SVN commit 926144 by orlovich:

Update for 183993
CCBUG:183993


 M  +8 -4      baseline/ecma/readonly.html-dom  
 M             baseline/ecma/readonly.html-dump.png  
 M  +13 -10    baseline/ecma/readonly.html-render  
 M  +2 -0      tests/ecma/readonly.html  


WebSVN link: http://websvn.kde.org/?view=rev&revision=926144