Index: Source/core/html/HTMLObjectElement.cpp |
diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp |
index c2751ebf6bf50e2cbe22c5aa2434900cc588c65c..76d2709da0c1a3b12500a1c79257659dad30e836 100644 |
--- a/Source/core/html/HTMLObjectElement.cpp |
+++ b/Source/core/html/HTMLObjectElement.cpp |
@@ -202,7 +202,7 @@ void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames, Vector<S |
// resource's URL to be given by a param named "src", "movie", "code" or "url" |
// if we know that resource points to a plug-in. |
if (url.isEmpty() && !urlParameter.isEmpty()) { |
- KURL completedURL = document().completeURL(urlParameter); |
+ KURL completedURL = treeScope().completeURL(urlParameter); |
bool useFallback; |
if (shouldUsePlugin(completedURL, serviceType, false, useFallback)) |
url = urlParameter; |