Changeset 89260 in webkit
- Timestamp:
- Jun 20, 2011 10:54:45 AM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r89252 r89260 1 2011-06-20 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Several pyauto tests are failing because some infobars 6 https://bugs.webkit.org/show_bug.cgi?id=62968 7 8 This function used to evaluate script as if there was a user gesture 9 (due to the lack of a source URL). This patch re-introduces the user 10 gesture (this time explicitly), which causes the pyauto tests listed in 11 http://code.google.com/p/chromium/issues/detail?id=86397 to start 12 passing again. It's unclear whether this forced gesture is needed in 13 non-test scenarios. 14 15 * src/WebFrameImpl.cpp: 16 (WebKit::WebFrameImpl::executeScriptAndReturnValue): 17 1 18 2011-06-20 Pavel Feldman <pfeldman@chromium.org> 2 19 -
trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp
r89052 r89260 133 133 #include "TextAffinity.h" 134 134 #include "TextIterator.h" 135 #include "UserGestureIndicator.h" 135 136 #include "WebAnimationControllerImpl.h" 136 137 #include "WebConsoleMessage.h" … … 849 850 850 851 #if USE(V8) 851 v8::Handle<v8::Value> WebFrameImpl::executeScriptAndReturnValue( 852 const WebScriptSource& source) 853 { 852 v8::Handle<v8::Value> WebFrameImpl::executeScriptAndReturnValue(const WebScriptSource& source) 853 { 854 // FIXME: This fake user gesture is required to make a bunch of pyauto 855 // tests pass. If this isn't needed in non-test situations, we should 856 // consider removing this code and changing the tests. 857 // http://code.google.com/p/chromium/issues/detail?id=86397 858 UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); 859 854 860 TextPosition1 position(WTF::OneBasedNumber::fromOneBasedInt(source.startLine), WTF::OneBasedNumber::base()); 855 return m_frame->script()->executeScript( 856 ScriptSourceCode(source.code, source.url, position)).v8Value(); 861 return m_frame->script()->executeScript(ScriptSourceCode(source.code, source.url, position)).v8Value(); 857 862 } 858 863
Note: See TracChangeset
for help on using the changeset viewer.