Bug 88764

Summary: [WK2] Fix client interface size for WKPageLoaderClient
Product: WebKit Reporter: Grzegorz Czajkowski <g.czajkowski>
Component: WebKit2Assignee: Grzegorz Czajkowski <g.czajkowski>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
proposed patch
andersca: review+, andersca: commit-queue-
updated ChangeLog according to Anders' review none

Description Grzegorz Czajkowski 2012-06-11 00:48:50 PDT
Fixes offset of WKPageLoaderClient for version 0 by adding didDetectXSSForFrame.
Comment 1 Grzegorz Czajkowski 2012-06-11 00:50:30 PDT
Created attachment 146801 [details]
proposed patch
Comment 2 Alexey Proskuryakov 2012-06-11 12:49:56 PDT
I don't understand the versioning scheme enough to tell what this does exactly. Could you please explain what this actually fixes? One would expect version 0 to have stabilized long ago.
Comment 3 Grzegorz Czajkowski 2012-06-12 06:40:43 PDT
(In reply to comment #2)
> I don't understand the versioning scheme enough to tell what this does exactly. Could you please explain what this actually fixes? One would expect version 0 to have stabilized long ago.

interfaceSizesByVersion it's a table that keeps size of structure for each version of client interface. If someone wants to change it (because of API change) then the structure  should be extended by adding a new callback to the current and bump version.

For example, version 0 of WKBundlePageLoaderClient includes members of structure from 0 to 17. To include last callback (didHandleOnloadEventsForFrame) we have to give offset to next one (didLayoutForFrame) but it isn't attached.

This patch adds didDetectXSSForFrame callback for version 0 of WKPageLoaderClient because offset should be set to next member of structure.
Comment 4 Anders Carlsson 2012-06-12 10:30:54 PDT
Comment on attachment 146801 [details]
proposed patch

Please explain in the ChangeLog that the offset should be of the first new callback that was added in the new version. Looks fine otherwise!
Comment 5 Grzegorz Czajkowski 2012-06-13 00:14:10 PDT
Created attachment 147246 [details]
updated ChangeLog according to Anders' review

Thanks Anders for review!
Comment 6 WebKit Review Bot 2012-06-14 00:04:34 PDT
Comment on attachment 147246 [details]
updated ChangeLog according to Anders' review

Clearing flags on attachment: 147246

Committed r120290: <http://trac.webkit.org/changeset/120290>
Comment 7 WebKit Review Bot 2012-06-14 00:04:39 PDT
All reviewed patches have been landed.  Closing bug.