[Webkit-unassigned] [Bug 86461] New: Property names of the built-in object cannot be retrieved after trying to delete one of it's properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 15 03:41:39 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86461

           Summary: Property names of the built-in object cannot be
                    retrieved after trying to delete one of it's
                    properties
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hojong.han at samsung.com


[Script]
delete navigator.geolocation;

for (var prop in navigator) {
    document.write("name: " + prop + "; value: " + navigator[prop], "<br>");
}

[Actual Result]
name: javaEnabled; value: function javaEnabled() { [native code] }
name: getStorageUpdates; value: function getStorageUpdates() { [native code] }

====================================================================================

I think the result of that script should be like below.
because geolocation cannot be removed since it has "DontDelete | ReadOnly" attribute
and properties of navigator nothing changed at last.

[Expected Result]
name: geolocation; value: [object Geolocation]
name: cookieEnabled; value: true
name: language; value: ko-KR
name: productSub; value: 20030107
name: product; value: Gecko
name: appCodeName; value: Mozilla
name: mimeTypes; value: [object MimeTypeArray]
name: vendorSub; value: 
name: vendor; value: Apple Computer, Inc.
name: platform; value: Win32
name: appName; value: Netscape
name: appVersion; value: 5.0 (Windows NT 5.1) AppleWebKit/534+ (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
name: userAgent; value: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534+ (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
name: plugins; value: [object PluginArray]
name: onLine; value: true
name: javaEnabled; value: function javaEnabled() { [native code] }
name: getStorageUpdates; value: function getStorageUpdates() { [native code] }


This issue is occurred after setStaticFunctionsReified().
It blocks an object from calling getClassPropertyNames method.

Any comment welcomed...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list