[Webkit-unassigned] [Bug 47817] FrameLoader::IsProcessingUserGesture is true for JavaScript initiated downloads after click navigation to webpage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 20 13:11:48 PDT 2010


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





--- Comment #21 from Johnny Ding <jnd at chromium.org>  2010-10-20 13:11:47 PST ---
(In reply to comment #20)
> (From update of attachment 71290 [details])
> What happened to the testing infrastructure?

Sent a patch, with using it we can track the gesture status in the frame load callbacks.
For example, the following test case can show that the user gesture is false in didStartProvisionalLoad callback. after fixing the meta-refresh bug.

<head>
<meta http-equiv="refresh" content="2">
</head>
<body>
<div id="loadCount"></div>
<div id="console"></div>
<script>      

    if (1 || window.layoutTestController) {
        if (!sessionStorage.loadCount)
            sessionStorage.loadCount = 1;
        else
            sessionStorage.loadCount = parseInt(sessionStorage.loadCount, 10) + 1;
        document.getElementById("loadCount").innerText = "load count : " + sessionStorage.loadCount;
        if (2 == sessionStorage.loadCount) {
            layoutTestController.notifyDone();
        } else {
            layoutTestController.dumpAsText();
            layoutTestController.dumpUserGestureInFrameLoadCallbacks();
            layoutTestController.waitUntilDone();
        }
    }
</script>

The result is
Frame with user gesture "true" - in didFinishDocumentLoadForFrame
Frame with user gesture "true" - in didHandleOnloadEventsForFrame
Frame with user gesture "true" - in willPerformClientRedirect
Frame with user gesture "true" - in didFinishLoadForFrame
Frame with user gesture "false" - in didStartProvisionalLoadForFrame
Frame with user gesture "true" - in didCancelClientRedirectForFrame
Frame with user gesture "true" - in didCommitLoadForFrame
Frame with user gesture "true" - in didFinishDocumentLoadForFrame
Frame with user gesture "true" - in didHandleOnloadEventsForFrame
Frame with user gesture "true" - in willPerformClientRedirect
Frame with user gesture "true" - in didFinishLoadForFrame
load count : 2

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