[Bug 26228] New: [WebDriver Spec] 11.2.1 executeScript doesn't specify how to handle self-recursive objects

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26228

            Bug ID: 26228
           Summary: [WebDriver Spec] 11.2.1 executeScript doesn't specify
                    how to handle self-recursive objects
           Product: Browser Test/Tools WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebDriver
          Assignee: public-browser-tools-testing@w3.org
          Reporter: lrekucki@gmail.com
        QA Contact: public-browser-tools-testing@w3.org
                CC: mike@w3.org

The algorithm for post-processing of return value requires that:

1. If result is:
    (...)
    5. an object, then return the object created by recursively applying this
algorithm to each property in result. 


If the object is self-recursive (i.e. var x = {}; x['parent'] = x), this causes
an infinite recursion. Such objects are actually more common then you would
expects. For example, the popular library jQuery represents it's search results
as objects that are self-recursive.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 28 June 2014 07:58:18 UTC