[Webkit-unassigned] [Bug 27793] New: Inspector: Cannot access properties of a wrapped callback function return value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 22:28:48 PDT 2009


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

           Summary: Inspector: Cannot access properties of a wrapped
                    callback function return value
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: casey.hattori at gmail.com


I think this is because JSInspectorCallbackWrapper wraps the return value
(except for primitive values) with JSInspectorCallbackWrapper and the
attributes like allowsGetPropertyNames and allowsGetProperty are set to false.

JSInspectorCallbackWrapper wraps a function in the "inspector" that gets called
from the "inspected window".

I think the expected behavior for the wrapping of each type of return value is
1. Primitive value  ->  return unwrapped
2. Object from "inspected window"  ->  return unwrapped
3. Function from "inspector"  ->  wrap with JSInspectorCallbackWrapper
4. Object(not function) from "inspector"  -> wrap with
JSInspectorCallbackWrapper? I don't think this case should happen at all.

Current behavior seems to be
1. Primitive value  ->  return unwrapped
2. Object from "inspected window"  ->  wrap with JSInspectorCallbackWrapper
3. Function from "inspector"  ->  wrap with JSInspectorCallbackWrapper
4. Object(not function) from "inspector"  -> wrap with
JSInspectorCallbackWrapper

Conclusion:
We should modify JSInspectorCallbackWrapper so that it the return value is
unwrapped if it is an object from the "inspected window".

-- 
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