Changeset 26071 in webkit
- Timestamp:
- Oct 5, 2007, 1:12:58 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r26070 r26071 1 2007-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 1 17 2007-10-04 Beth Dakin <bdakin@apple.com> 2 18 -
trunk/WebCore/bindings/js/kjs_proxy.cpp
r25783 r26071 30 30 #include "JSDOMWindow.h" 31 31 #include "Page.h" 32 #include "Settings.h" 32 33 #include "kjs_events.h" 33 34 #include "kjs_window.h" … … 169 170 void KJSProxy::updateDocumentWrapper() 170 171 { 172 Settings* settings = m_frame->settings(); 173 if (!settings || !settings->isJavaScriptEnabled()) 174 return; 175 171 176 if (!m_script || !m_frame->document()) 172 177 return; 178 173 179 JSLock lock; 174 180 // this will update 'document' property to point to the current document
Note:
See TracChangeset
for help on using the changeset viewer.