blob: 1318c2d9efb3c82ffe8ed4381a8c4865e9a2fcd2 [file] [log] [blame]
Tests download is canceled when behavior is set to deny.
Downloading via a navigation:
{
method : Page.downloadWillBegin
params : {
frameId : <string>
guid : <string>
suggestedFilename : hello.txt
url : http://127.0.0.1:8000/devtools/network/resources/resource.php?download=1
}
sessionId : <string>
}
{
method : Page.downloadProgress
params : {
guid : <string>
receivedBytes : <number>
state : inProgress
totalBytes : 11
}
sessionId : <string>
}
{
method : Page.downloadProgress
params : {
guid : <string>
receivedBytes : <number>
state : canceled
totalBytes : 11
}
sessionId : <string>
}
Downloading by clicking a link:
{
method : Page.downloadWillBegin
params : {
frameId : <string>
guid : <string>
suggestedFilename : hello.text
url : http://127.0.0.1:8000/devtools/network/resources/resource.php
}
sessionId : <string>
}
{
method : Page.downloadProgress
params : {
guid : <string>
receivedBytes : <number>
state : inProgress
totalBytes : 11
}
sessionId : <string>
}
{
method : Page.downloadProgress
params : {
guid : <string>
receivedBytes : <number>
state : canceled
totalBytes : 11
}
sessionId : <string>
}