Fixed <rdar://problem/3985535> QT Plug-in JavaScript support now fails in <embed...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Feb 2005 02:51:58 +0000 (02:51 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Feb 2005 02:51:58 +0000 (02:51 +0000)
        Reviewed by Maciej.

        * khtml/ecma/kjs_html.cpp:
        (KJS::HTMLDocument::tryGet):

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/ecma/kjs_html.cpp

index 0ce0ffd62d446509def3a4ee57436f5273d6ec00..8bf8014b5a8893f795d65d611dd5d76b721878d7 100644 (file)
@@ -1,3 +1,12 @@
+2005-02-01  Richard Williamson   <rjw@apple.com>
+
+       Fixed <rdar://problem/3985535> QT Plug-in JavaScript support now fails in <embed> tag only case
+
+        Reviewed by Maciej.
+
+        * khtml/ecma/kjs_html.cpp:
+        (KJS::HTMLDocument::tryGet):
+
 2005-02-01  John Sullivan  <sullivan@apple.com>
 
         Written by Darin, reviewed and tested by me
index 19f4732eaeee22294e138e85ea1f35f87c76440f..594c761db8598433111a80f8b07e289599cadc61 100644 (file)
@@ -324,13 +324,13 @@ Value KJS::HTMLDocument::tryGet(ExecState *exec, const Identifier &propertyName)
     DOM::HTMLCollection embeds = doc.embeds();
     DOM::HTMLElement anEmbed = embeds.namedItem (propertyName.string());
     if (!anEmbed.isNull()) {
-       return getDOMNode(exec,anApplet);
+       return getDOMNode(exec,anEmbed);
     }
 
     DOM::HTMLCollection objects = doc.objects();
     DOM::HTMLElement anObject = objects.namedItem (propertyName.string());
     if (!anObject.isNull()) {
-       return getDOMNode(exec,anApplet);
+       return getDOMNode(exec,anObject);
     }
 #endif