[Webkit-unassigned] [Bug 119654] [Qt] Avoid calling QWebPage's virtual functions during deletion of QWebPage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 11 04:20:53 PDT 2013


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





--- Comment #5 from Allan Sandfeld Jensen <allan.jensen at digia.com>  2013-08-11 04:20:29 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > Since QWebPage is already a wrapper around QWebPageAdaptor why can't you call QWebPageAdaptor::preparetoDestroy() from the qwebpage destructor?
> > 
> > When control reaches ~QWebPage derived class already been destroyed(~UnLoadTestPage).
> 
> True, but that only matters if you need the overloaded alert like the test-case. Most common cases of what happens on unload would work, wouldn't it?

Nevermind that was the entire case of the bug-report. 

If this depends on the user of qwebpage calling an extra method, could he call something to unload the page instead? 

Perhaps mainFram()->setHtml("") ?

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