Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: WebCore/dom/ScriptExecutionContext.cpp

Issue 3444009: Merge 67734 - createBlobURL with no argument causes crash.... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/files/create-blob-url-crash-expected.txt ('k') | WebCore/page/DOMWindow.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/dom/ScriptExecutionContext.cpp
===================================================================
--- WebCore/dom/ScriptExecutionContext.cpp (revision 67741)
+++ WebCore/dom/ScriptExecutionContext.cpp (working copy)
@@ -277,6 +277,8 @@
#if ENABLE(BLOB)
KURL ScriptExecutionContext::createPublicBlobURL(Blob* blob)
{
+ if (!blob)
+ return KURL();
KURL publicURL = BlobURL::createURL(this);
ThreadableBlobRegistry::registerBlobURL(this, publicURL, blob->url());
m_publicBlobURLs.add(publicURL.string());
« no previous file with comments | « LayoutTests/fast/files/create-blob-url-crash-expected.txt ('k') | WebCore/page/DOMWindow.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698