WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28132
FrameLoadType / WebFrameLoadType enums are out of sync
https://bugs.webkit.org/show_bug.cgi?id=28132
Summary
FrameLoadType / WebFrameLoadType enums are out of sync
Nikolas Zimmermann
Reported
2009-08-09 10:22:19 PDT
WebCore/loader/FrameLoaderTypes.h defines the FrameLoadType enum. WebKit/mac/WebView/WebFramePrivate.h and WebKit/win/Interfaces/IWebFramePrivate.idl define their own public WebFrameLoadType enum. The enums are out of sync at the moment, and it's very dangerous because The FrameLoadType -> WebFrameLoadType conversions happen as c-casts.
Attachments
Initial patch
(4.71 KB, patch)
2009-08-09 10:26 PDT
,
Nikolas Zimmermann
mjs
: review-
Details
Formatted Diff
Diff
Updated patch
(3.10 KB, patch)
2009-08-09 14:02 PDT
,
Nikolas Zimmermann
no flags
Details
Formatted Diff
Diff
Updated patch v2
(3.48 KB, patch)
2009-08-09 14:52 PDT
,
Nikolas Zimmermann
mjs
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Nikolas Zimmermann
Comment 1
2009-08-09 10:26:23 PDT
Created
attachment 34425
[details]
Initial patch
Nikolas Zimmermann
Comment 2
2009-08-09 13:39:15 PDT
A quick scan, when these problems have been introduced: #1) WebFrameLoadTypeReloadAllowingStaleData (affecting mac & win)
http://trac.webkit.org/changeset/40353/trunk/WebCore/loader/FrameLoaderTypes.h
#2) WebFrameLoadTypeReloadFromOrigin (affecting win only)
http://trac.webkit.org/changeset/39304/trunk/WebCore/loader/FrameLoaderTypes.h
Maciej Stachowiak
Comment 3
2009-08-09 13:52:47 PDT
Comment on
attachment 34425
[details]
Initial patch This changes public API headers and may break source and/or binary compat. The better way to do this would be to restore the old value to FrameLoadType, even though it is unused. As discussed on IRC. r- for now, awaiting new patch.
Nikolas Zimmermann
Comment 4
2009-08-09 14:02:34 PDT
Created
attachment 34429
[details]
Updated patch Fix Maciej's comments.
Nikolas Zimmermann
Comment 5
2009-08-09 14:15:31 PDT
Comment on
attachment 34429
[details]
Updated patch Clearing review patch. This won't compile, the new enum value is not handled in the switch'es in FrameLoader. Need to find a better solution.
Nikolas Zimmermann
Comment 6
2009-08-09 14:52:17 PDT
Created
attachment 34431
[details]
Updated patch v2
Maciej Stachowiak
Comment 7
2009-08-09 14:56:42 PDT
Comment on
attachment 34431
[details]
Updated patch v2 r=me
Nikolas Zimmermann
Comment 8
2009-08-09 15:12:07 PDT
Landed in
r46965
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug