Don't leak WKBrowsingContextControllers
https://bugs.webkit.org/show_bug.cgi?id=134368
<rdar://problem/17476582>

Reviewed by Sam Weinig.

* UIProcess/API/mac/WKView.mm:
(-[WKView browsingContextController]):
Adoption is important.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Win] Fix potential buffer overrun in DLLLauncher
https://bugs.webkit.org/show_bug.cgi?id=134351
<rdar://problem/17469185>

Reviewed by Darin Adler.

* win/DLLLauncher/DLLLauncherMain.cpp: Correct error
in end-of-buffer calculation.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rearrange conditions to find invalid protocol in NavigatorContentUtils::verifyProtocolHandlerScheme()
https://bugs.webkit.org/show_bug.cgi?id=134289

Reviewed by Darin Adler.

If we do early return when there is invalid protocol, we're able to avoid unnecessary call flow.

No new tests, covered by existing tests.

* Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
(WebCore::verifyProtocolHandlerScheme):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[MSE][Mac] Crash in WebCore::MediaPlayerPrivateMediaSourceAVFObjC::buffered const + 13
https://bugs.webkit.org/show_bug.cgi?id=134367

Reviewed by Darin Adler.

Add a couple of null-checks to protect against methods being called in the brief time
between when the object is created and when it's asked to load.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::durationDouble):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::buffered):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Win] Always NULL-terminate the string in createUTF8String()
<http://webkit.org/b/134353>
<rdar://problem/17471783>

Reviewed by Brent Fulgham.

* plugins/PluginView.cpp:
(WebCore::createUTF8String): Pull out CString length into local
variable.  Switch to use memcpy.  Always NULL-terminate the
string.

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