[Webkit-unassigned] [Bug 148223] New: Web Inspector: add a regression test for the fix introduced in r188679

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 20 09:26:31 PDT 2015


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

            Bug ID: 148223
           Summary: Web Inspector: add a regression test for the fix
                    introduced in r188679
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bburg at apple.com
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

Here's the key trick:

    function listenerRecieversWithPrototype(proto, emitter) {
        let results = new Set;
        for (let eventType in emitter._listeners) {
            let recordsForEvent = emitter._listeners[eventType];
            for (let listener of recordsForEvent) {
                if (listener.thisObject instanceof proto)
                    results.add(listener.thisObject);
            }
        }
        return results;
    }

We can check that the number of instances stays the same across reloads or navigations between simple pages.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150820/01e573c9/attachment.html>


More information about the webkit-unassigned mailing list