Changeset 8717 in webkit


Ignore:
Timestamp:
Feb 28, 2005, 1:16:54 PM (20 years ago)
Author:
cblu
Message:

Fixed: <rdar://problem/4026639> www.bmw.ca configurator does not work with Safari

Reviewed by john.

  • khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::tryGet): when frameset.<name of frame child> is called, return the window object of the frame child
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog-2005-08-23

    r8716 r8717  
     12005-02-28  Chris Blumenberg  <[email protected]>
     2
     3        Fixed: <rdar://problem/4026639> www.bmw.ca configurator does not work with Safari
     4
     5        Reviewed by john.
     6
     7        * khtml/ecma/kjs_html.cpp:
     8        (KJS::HTMLElement::tryGet): when frameset.<name of frame child> is called, return the window object of the frame child
     9
    1102005-02-28  Ken Kocienda  <[email protected]>
    211
  • trunk/WebCore/khtml/ecma/kjs_html.cpp

    r8660 r8717  
    11521152    }
    11531153      break;
     1154    case ID_FRAMESET: {
     1155        DOM::Node frame = element.children().namedItem(propertyName.string());
     1156        if (!frame.isNull() && frame.elementId() == ID_FRAME) {
     1157            DOM::DocumentImpl* doc = static_cast<DOM::HTMLFrameElementImpl *>(frame.handle())->contentDocument();
     1158            if (doc) {
     1159                KHTMLPart* part = doc->part();
     1160                if (part) {
     1161                    Window *window = Window::retrieveWindow(part);
     1162                    if (window) {
     1163                        return Value(window);
     1164                    }
     1165                }
     1166            }
     1167        }
     1168    }
     1169        break;
    11541170    case ID_FRAME:
    11551171    case ID_IFRAME: {
Note: See TracChangeset for help on using the changeset viewer.