http://trac.webkit.org/changeset/92982 introduced layoutTestController.setShouldStayOnPageAfterHandlingBeforeUnload. Qt DRT should support this.
The test skipped in http://trac.webkit.org/changeset/92990.
Note that this feature is implemented by WebKitTestRunner and therefore should pass in Qt WebKit2.
=== Bulk closing of Qt bugs ===
If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.
If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.