[Webkit-unassigned] [Bug 47817] New: FrameLoader::IsProcessingUserGesture is true for JavaScript initiated downloads
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 18 06:31:05 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=47817
Summary: FrameLoader::IsProcessingUserGesture is true for
JavaScript initiated downloads
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Page Loading
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pierre.lafayette at gmail.com
Created an attachment (id=71028)
--> (https://bugs.webkit.org/attachment.cgi?id=71028&action=review)
Test case
If I click on a link that navigates to a page which uses setTimeout to initiate a download (e.g. setTimeout("window.location = 'file.exe'", 5000)), FrameLoader::IsProcessingUserGesture is still true when loading of file.exe begins.
It seems that the UserGestureState is set to PossiblyProcessingUserGesture and the !activeFrame conditional gets hit.
bool ScriptController::processingUserGesture()
{
Frame* activeFrame = V8Proxy::retrieveFrameForEnteredContext();
// No script is running, so it is user-initiated unless the gesture stack
// explicitly says it is not.
if (!activeFrame)
return UserGestureIndicator::getUserGestureState() != DefinitelyNotProcessingUserGesture;
--
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