From dc4e368d68e85eaefb6dc2e470f5f9e57b08a096 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 14 Jul 2008 19:35:23 -0400 Subject: [PATCH] Bug 430424: Remove no longer needed code that munges "type" attributes in the DOM. r+sr=jst --- modules/plugin/base/src/nsPluginHostImpl.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/modules/plugin/base/src/nsPluginHostImpl.cpp b/modules/plugin/base/src/nsPluginHostImpl.cpp index e9014ffe907..debaa2b9a2a 100644 --- a/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -2028,11 +2028,6 @@ nsPluginStreamListenerPeer::OnStartRequest(nsIRequest *request, } } - nsCAutoString contentType; - rv = channel->GetContentType(contentType); - if (NS_FAILED(rv)) - return rv; - // do a little sanity check to make sure our frame isn't gone // by getting the tag type and checking for an error, we can determine if // the frame is gone @@ -2042,20 +2037,6 @@ nsPluginStreamListenerPeer::OnStartRequest(nsIRequest *request, nsPluginTagType tagType; if (NS_FAILED(pti2->GetTagType(&tagType))) return NS_ERROR_FAILURE; // something happened to our object frame, so bail! - - // Now that we know the content type, tell the DOM element. - nsCOMPtr element; - pti2->GetDOMElement(getter_AddRefs(element)); - - nsCOMPtr object(do_QueryInterface(element)); - if (object) { - object->SetType(NS_ConvertASCIItoUTF16(contentType)); - } else { - nsCOMPtr embed(do_QueryInterface(element)); - if (embed) { - embed->SetType(NS_ConvertASCIItoUTF16(contentType)); - } - } } // Get the notification callbacks from the channel and save it as