[Webkit-unassigned] [Bug 114865] New: HTMLAnchorElement download attribute tests are broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 19 04:27:35 PDT 2013


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

           Summary: HTMLAnchorElement download attribute tests are broken
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xan.lopez at gmail.com


There are four tests testing the download attribute for the anchor element:

anchor-download.html
anchor-nodownload-set.html
anchor-download-unset.html
anchor-nodownload.html

The latter two will, either by not having the download attr., or by having it removed with JS, not download the resource (a Blob object) set as href for the anchor element on click, and a navigation will happen. The new page will call notifyDone(), and the test will end.

The first two, though, *will* download the object, and the navigation will never happen. Since notifyDone() is not called here, the tests never finishes, and we have to wait until the timeout. This is what happens at least in the GTK+ and the BB port, so it makes me think that the test is just broken.

I suppose I could set a very small timeout after the click and make the test finish after that, but it seems hacky. Ideally we'd need to check somehow that the download happened after the click, and finish after that, but I'm not sure of what we would be the best way to do this.

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