The BWebDownload was using BWebPage for stuff, but the BWebPage can be long
gone when a BWebDownload wanted to use it. Now the class is more self-sufficient. One example of the problem was clicking a link that opens a blank page, then closing that page while the download was still loading. 1) The download finished notification never arrived and 2) clicking to cancel the download would crash after the download finished, since really it had already selfdestructed... git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@240 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
a3b3ded520
commit
df6c7e475d
@ -272,6 +272,12 @@ public:
|
||||
// TOAST!
|
||||
return;
|
||||
}
|
||||
case B_DOWNLOAD_REMOVED:
|
||||
// TODO: This is a bit asymetric. The removed notification
|
||||
// arrives here, but it would be nicer if it arrived
|
||||
// at the window...
|
||||
Window()->PostMessage(message);
|
||||
break;
|
||||
default:
|
||||
BGridView::MessageReceived(message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user