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

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 1185773003: Empty object@data url shouldn't be resolved and loaded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/plugins/empty-url-object-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index 415416b311a57f8a0efc67bbcb3c3e3d7c4a82c8..6ec3d2cbf3362231f76908c71ff80e8817373ceb 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -501,7 +501,7 @@ bool HTMLPlugInElement::requestObject(const String& url, const String& mimeType,
if (protocolIsJavaScript(url))
return false;
- KURL completedURL = document().completeURL(url);
+ KURL completedURL = url.isEmpty() ? KURL() : document().completeURL(url);
if (!pluginIsLoadable(completedURL, mimeType))
return false;
« no previous file with comments | « LayoutTests/fast/plugins/empty-url-object-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698