Ignore:
Timestamp:
Oct 5, 2007, 5:54:00 PM (18 years ago)
Author:
ggaren
Message:

JavaScriptCore:

Reviewed by Sam Weinig.


Added JSObject::removeDirect, to support the fix for
<rdar://problem/5522487> REGRESSION: With JavaScript disabled, any
page load causes a crash in PropertyMap::put

  • kjs/object.cpp: (KJS::JSObject::removeDirect):
  • kjs/object.h:

WebCore:

Reviewed by Sam Weinig.


New fix for <rdar://problem/5522487> REGRESSION: With JavaScript
disabled, any page load causes a crash in PropertyMap::put


Explicitly remove the "document" property from the window. The old
solution would leave a stale "document" property around after JavaScript
was re-enabled.

The architecture for disabling JavaScript could use some consolidation.
It seems wrong that a script proxy even exists when JavaScript is
disabled. It also seems wrong that so many individual call sites are
responsible for checking whether JavaScript is enabled. I've filed a
bug about this: http://bugs.webkit.org/show_bug.cgi?id=15385.

  • bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::clearDocumentWrapper):
  • bindings/js/kjs_proxy.h:
  • page/Frame.cpp: (WebCore::Frame::setDocument):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r25584 r26074  
    1 _jscore_collector_introspection
    2 _jscore_fastmalloc_introspection
    31_JSCheckScriptSyntax
    42_JSClassCreate
     
    143141__ZN3KJS13SavedBuiltinsC1Ev
    144142__ZN3KJS13SavedBuiltinsD1Ev
     143__ZN3KJS13jsOwnedStringERKNS_7UStringE
    145144__ZN3KJS14StringInstance14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
    146145__ZN3KJS14StringInstance16getPropertyNamesEPNS_9ExecStateERNS_17PropertyNameArrayE
     
    198197__ZN3KJS8DebuggerD2Ev
    199198__ZN3KJS8JSObject11hasInstanceEPNS_9ExecStateEPNS_7JSValueE
     199__ZN3KJS8JSObject12removeDirectERKNS_10IdentifierE
    200200__ZN3KJS8JSObject14callAsFunctionEPNS_9ExecStateEPS0_RKNS_4ListE
    201201__ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
     
    214214__ZN3KJS8jsStringEPKc
    215215__ZN3KJS8jsStringERKNS_7UStringE
    216 __ZN3KJS13jsOwnedStringERKNS_7UStringE
    217216__ZN3KJS9Collector15numInterpretersEv
    218217__ZN3KJS9Collector15recordExtraCostEm
     
    283282__ZTVN3KJS19InternalFunctionImpE
    284283__ZTVN3KJS8JSObjectE
     284_jscore_collector_introspection
     285_jscore_fastmalloc_introspection
    285286_kJSClassDefinitionEmpty
    286287_kjs_pcre_compile
Note: See TracChangeset for help on using the changeset viewer.