Changeset 26071 in webkit


Ignore:
Timestamp:
Oct 5, 2007, 1:12:58 PM (18 years ago)
Author:
ggaren
Message:

Reviewed by Sam Weinig.


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


The problem was that we were using JavaScript when JavaScript was
disabled. The architecture for disabling JavaScript could use some
consolidation, but this is the simplest, safest change for now.


Currently passing layout tests still pass.

  • bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::updateDocumentWrapper):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r26070 r26071  
     12007-10-05  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4       
     5        Fixed <rdar://problem/5522487> REGRESSION: With JavaScript disabled,
     6        any page load causes a crash in PropertyMap::put
     7       
     8        The problem was that we were using JavaScript when JavaScript was
     9        disabled. The architecture for disabling JavaScript could use some
     10        consolidation, but this is the simplest, safest change for now.
     11       
     12        Currently passing layout tests still pass.
     13
     14        * bindings/js/kjs_proxy.cpp:
     15        (WebCore::KJSProxy::updateDocumentWrapper):
     16
    1172007-10-04  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/WebCore/bindings/js/kjs_proxy.cpp

    r25783 r26071  
    3030#include "JSDOMWindow.h"
    3131#include "Page.h"
     32#include "Settings.h"
    3233#include "kjs_events.h"
    3334#include "kjs_window.h"
     
    169170void KJSProxy::updateDocumentWrapper()
    170171{
     172    Settings* settings = m_frame->settings();
     173    if (!settings || !settings->isJavaScriptEnabled())
     174        return;
     175
    171176    if (!m_script || !m_frame->document())
    172177        return;
     178
    173179    JSLock lock;
    174180    // this will update 'document' property to point to the current document
Note: See TracChangeset for help on using the changeset viewer.