[Webkit-unassigned] [Bug 164762] New: UIScriptController: script with no async tasks fails if an earlier script registered a callback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 14 20:16:46 PST 2016


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

            Bug ID: 164762
           Summary: UIScriptController: script with no async tasks fails
                    if an earlier script registered a callback
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com
                CC: lforschler at apple.com

If one UI script registers a callback:

        function getScrollDownUIScript(scrollX, scrollY)
        {
            return `(function() {
                uiController.didEndScrollingCallback = function() {
                    uiController.uiScriptComplete();
                };
                uiController.scrollToOffset(${scrollX}, ${scrollY}, function() {});
            })();`;
        }


then a later one just wants to return data:

        function getResultsUIScript()
        {
            return `(function() {
                var results = {
                    zoomScale : uiController.zoomScale,
                    visibleRect : uiController.contentVisibleRect,
                    scrollingTree : uiController.scrollingTreeAsText
                };

                return JSON.stringify(results);
            })();`;
        }

that later one never returns because UIScriptContext::runUIScript() thinks there's an outstanding task.

-- 
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/20161115/f04f2b18/attachment-0001.html>


More information about the webkit-unassigned mailing list