[BlackBerry] WebPagePrivate::load should not check new window policy
https://bugs.webkit.org/show_bug.cgi?id=110403

Patch by Andrew Lo <anlo@rim.com> on 2013-02-21
Reviewed by Rob Buis.

Based on my understanding of changeset 135952, we should
not check the new window policy in WebPagePrivate::load.

None of the other ports seem to do this, except for plugins.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::load):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION: Crash in MainResourceLoader::setDataBufferingPolicy when sharing an html5 video via email
https://bugs.webkit.org/show_bug.cgi?id=110075

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Test: webarchive/loading/video-in-webarchive.html

* loader/MainResourceLoader.cpp:
(WebCore::MainResourceLoader::continueAfterContentPolicy): isStopping()
    isn't accurate to determine whether a SubstituteData load should
    continue, as this point in the code shouldn't be reachable from any point
    where isStopping() would return true. DocumentLoader might have completely
    stopped and believe that MainResourceLoader is complete, though. Don't
    continue in that case.
(WebCore::MainResourceLoader::setDataBufferingPolicy): m_resource can be null
    in a reasonable case, handle it rather ?\026than asserting that it can't be null.

LayoutTests:

* webarchive/loading/resources/video-in-webarchive.webarchive: Added.
* webarchive/loading/video-in-webarchive-expected.txt: Added.
* webarchive/loading/video-in-webarchive.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143630 268f45cc-cd09-0410-ab3c-d52691b4dbfc