Bug 26481 - Implement layoutTestController.dispatchPendingLoadRequests
Summary: Implement layoutTestController.dispatchPendingLoadRequests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Hyungwook Lee
URL: http://trac.webkit.org/changeset/44519
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2009-06-17 08:52 PDT by Adam Roben (:aroben)
Modified: 2015-06-17 21:11 PDT (History)
4 users (show)

See Also:


Attachments
Patch (5.39 KB, patch)
2015-06-17 05:34 PDT, Hyungwook Lee
bfulgham: review-
Details | Formatted Diff | Diff
Patch (5.25 KB, patch)
2015-06-17 16:08 PDT, Hyungwook Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2009-06-17 08:52:44 PDT
r44519 added layoutTestController.dispatchPendingLoadRequests. We need to implement this on Windows so we can run the tests that use it.
Comment 1 Adam Roben (:aroben) 2009-06-17 08:54:59 PDT
<rdar://problem/6980493>
Comment 2 Hyungwook Lee 2015-06-17 05:34:21 PDT
Created attachment 255012 [details]
Patch
Comment 3 Brady Eidson 2015-06-17 08:16:07 PDT
Comment on attachment 255012 [details]
Patch

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

> Source/WebKit/win/Interfaces/IWebViewPrivate.idl:300
>      // SPI for DumpRenderTree
>      HRESULT setLoadResourcesSerially([in] BOOL serialize);
>  
> +    HRESULT dispatchPendingLoadRequests();
> +
>      HRESULT scaleWebView([in] double scale, [in] POINT origin);
>  }

I might be wrong about this because I haven't worked on the Windows bindings in forever, but I seem to recall a requirement that new methods be added to the end of an interface as to not break shipping software?

I might be conflating this with something else altogether, but I'm weary of this.

Need a Windows expert to look at this.
Comment 4 Brent Fulgham 2015-06-17 10:17:25 PDT
Comment on attachment 255012 [details]
Patch

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

r- because the ordering in the IDL file needs to be adjusted to avoid breaking shipping software. Otherwise this looks fine.

> Source/WebKit/win/WebView.h:1024
> +    HRESULT STDMETHODCALLTYPE dispatchPendingLoadRequests();

Just to be safe, I'd move this below "scaleWebView" as well.

>> Source/WebKit/win/Interfaces/IWebViewPrivate.idl:300
>>  }
> 
> I might be wrong about this because I haven't worked on the Windows bindings in forever, but I seem to recall a requirement that new methods be added to the end of an interface as to not break shipping software?
> 
> I might be conflating this with something else altogether, but I'm weary of this.
> 
> Need a Windows expert to look at this.

You're right. We want the link offsets to be consistent across builds, so we need to move this new method below "scaleWebView".
Comment 5 Hyungwook Lee 2015-06-17 16:02:31 PDT
Comment on attachment 255012 [details]
Patch

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

>>> Source/WebKit/win/Interfaces/IWebViewPrivate.idl:300
>>>  }
>> 
>> I might be wrong about this because I haven't worked on the Windows bindings in forever, but I seem to recall a requirement that new methods be added to the end of an interface as to not break shipping software?
>> 
>> I might be conflating this with something else altogether, but I'm weary of this.
>> 
>> Need a Windows expert to look at this.
> 
> You're right. We want the link offsets to be consistent across builds, so we need to move this new method below "scaleWebView".

Thanks for your review.
I will update it as your guide.
Comment 6 Hyungwook Lee 2015-06-17 16:08:20 PDT
Created attachment 255047 [details]
Patch
Comment 7 Gyuyoung Kim 2015-06-17 20:22:17 PDT
Comment on attachment 255047 [details]
Patch

Hyungwook, please check if this patch breaks buildbots after landing.
Comment 8 Hyungwook Lee 2015-06-17 20:32:15 PDT
I will check it.
Comment 9 WebKit Commit Bot 2015-06-17 21:11:47 PDT
Comment on attachment 255047 [details]
Patch

Clearing flags on attachment: 255047

Committed r185691: <http://trac.webkit.org/changeset/185691>
Comment 10 WebKit Commit Bot 2015-06-17 21:11:54 PDT
All reviewed patches have been landed.  Closing bug.