Changeset 147580 in webkit
- Timestamp:
- Apr 3, 2013 1:39:22 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147579 r147580 1 2013-04-03 Timothy Hatcher <timothy@apple.com> 2 3 Stop unconditionally enabling JavaScript execution when closing the Web Inspector. 4 5 https://webkit.org/b/113889 6 rdar://problem/12281794 7 8 Reviewed by Joseph Pecoraro. 9 10 * inspector/InspectorPageAgent.cpp: 11 (WebCore::InspectorPageAgent::InspectorPageAgent): Initialize m_originalScriptExecutionDisabled. 12 (WebCore::InspectorPageAgent::enable): Populate m_originalScriptExecutionDisabled based on current setting. 13 (WebCore::InspectorPageAgent::disable): Restore previous setting. 14 * inspector/InspectorPageAgent.h: 15 (InspectorPageAgent): Added m_originalScriptExecutionDisabled. 16 1 17 2013-04-03 Dean Jackson <dino@apple.com> 2 18 -
trunk/Source/WebCore/inspector/InspectorPageAgent.cpp
r146349 r147580 344 344 , m_enabled(false) 345 345 , m_isFirstLayoutAfterOnLoad(false) 346 , m_originalScriptExecutionDisabled(false) 346 347 , m_geolocationOverridden(false) 347 348 , m_ignoreScriptsEnabledNotification(false) … … 404 405 m_state->setBoolean(PageAgentState::pageAgentEnabled, true); 405 406 m_instrumentingAgents->setInspectorPageAgent(this); 407 408 if (Frame* frame = mainFrame()) { 409 if (Settings* settings = frame->settings()) 410 m_originalScriptExecutionDisabled = !settings->isScriptEnabled(); 411 } 406 412 } 407 413 … … 413 419 m_instrumentingAgents->setInspectorPageAgent(0); 414 420 415 setScriptExecutionDisabled(0, false);421 setScriptExecutionDisabled(0, m_originalScriptExecutionDisabled); 416 422 setShowPaintRects(0, false); 417 423 setShowDebugBorders(0, false); -
trunk/Source/WebCore/inspector/InspectorPageAgent.h
r146349 r147580 208 208 bool m_enabled; 209 209 bool m_isFirstLayoutAfterOnLoad; 210 bool m_originalScriptExecutionDisabled; 210 211 bool m_geolocationOverridden; 211 212 bool m_ignoreScriptsEnabledNotification;
Note: See TracChangeset
for help on using the changeset viewer.