Bug 88764 - [WK2] Fix client interface size for WKPageLoaderClient
Summary: [WK2] Fix client interface size for WKPageLoaderClient
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Linux
: P2 Normal
Assignee: Grzegorz Czajkowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-11 00:48 PDT by Grzegorz Czajkowski
Modified: 2012-06-14 00:04 PDT (History)
4 users (show)

See Also:


Attachments
proposed patch (1.24 KB, patch)
2012-06-11 00:50 PDT, Grzegorz Czajkowski
andersca: review+
andersca: commit-queue-
Details | Formatted Diff | Diff
updated ChangeLog according to Anders' review (1.33 KB, patch)
2012-06-13 00:14 PDT, Grzegorz Czajkowski
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.