Bug 159342

Summary: [Win] The test fast/scrolling/overflow-scroll-past-max.html is timing out.
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: Tools / TestsAssignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, lforschler
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch darin: review+

Description Per Arne Vollan 2016-07-01 04:12:52 PDT
We need to implement the event sender functions monitorWheelEvents and callAfterScrollingCompletes.
Comment 1 Per Arne Vollan 2016-07-01 04:26:36 PDT
Created attachment 282536 [details]
Patch
Comment 2 Per Arne Vollan 2016-07-04 02:49:08 PDT
Created attachment 282698 [details]
Patch
Comment 3 Brent Fulgham 2016-07-07 11:44:52 PDT
Comment on attachment 282698 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=282698&action=review

> Source/WebCore/ChangeLog:9
> +        Implement a way to find the core Frame from the document list.

Did you try using the "core(WebFrame*)" function? I think this would do what you want, and be consistent with how the macOS version of this works.

> Source/WebCore/testing/js/WebCoreTestSupport.h:54
> +void setTestCallbackAndStartNotificationTimer(JSContextRef, JSObjectRef) TEST_SUPPORT_EXPORT;

You might not need this...

> Tools/DumpRenderTree/win/EventSender.cpp:827
> +    WebCoreTestSupport::setTestCallbackAndStartNotificationTimer(globalContext, jsCallbackFunction);

Could you pass the WebCore::Frame backing the IWebFrame object to the existing WebCoreTestSupport::setTestCallbackAndStartNotificationTimer?

See the "core(WebFrame*)" method in WebFrame.h.
Comment 4 Per Arne Vollan 2016-07-12 06:36:06 PDT
(In reply to comment #3)
> Comment on attachment 282698 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=282698&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        Implement a way to find the core Frame from the document list.
> 
> Did you try using the "core(WebFrame*)" function? I think this would do what
> you want, and be consistent with how the macOS version of this works.
> 
> > Source/WebCore/testing/js/WebCoreTestSupport.h:54
> > +void setTestCallbackAndStartNotificationTimer(JSContextRef, JSObjectRef) TEST_SUPPORT_EXPORT;
> 
> You might not need this...
> 
> > Tools/DumpRenderTree/win/EventSender.cpp:827
> > +    WebCoreTestSupport::setTestCallbackAndStartNotificationTimer(globalContext, jsCallbackFunction);
> 
> Could you pass the WebCore::Frame backing the IWebFrame object to the
> existing WebCoreTestSupport::setTestCallbackAndStartNotificationTimer?
> 
> See the "core(WebFrame*)" method in WebFrame.h.

I would like to use this, although wouldn't this mean crossing some boundary, since WebFrame and WebCore::Frame are not part of the COM api?

Thanks for reviewing!
Comment 5 Per Arne Vollan 2016-07-18 06:54:02 PDT
Created attachment 283907 [details]
Patch
Comment 6 Per Arne Vollan 2016-07-19 04:00:22 PDT
Thanks for reviewing!
Comment 7 Per Arne Vollan 2016-07-19 04:01:56 PDT
Committed r203403: <http://trac.webkit.org/changeset/203403>