WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 144270
Make `enum NavigationType` be an enum class
https://bugs.webkit.org/show_bug.cgi?id=144270
Summary
Make `enum NavigationType` be an enum class
Brady Eidson
Reported
2015-04-27 11:16:55 PDT
Make `enum NavigationType` be an enum class
Attachments
Patch v1
(16.08 KB, patch)
2015-04-27 11:31 PDT
,
Brady Eidson
achristensen
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2015-04-27 11:31:17 PDT
Created
attachment 251762
[details]
Patch v1
WebKit Commit Bot
Comment 2
2015-04-27 11:32:28 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Alex Christensen
Comment 3
2015-04-27 11:40:17 PDT
Comment on
attachment 251762
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=251762&action=review
r=me
> Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm:1569 > + [NSNumber numberWithInt:static_cast<int>(action.type())], WebActionNavigationTypeKey,
Why is this necessary? I would omit this from this change.
Brady Eidson
Comment 4
2015-04-27 11:42:55 PDT
(In reply to
comment #3
)
> Comment on
attachment 251762
[details]
> Patch v1 > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=251762&action=review
> > r=me > > > Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm:1569 > > + [NSNumber numberWithInt:static_cast<int>(action.type())], WebActionNavigationTypeKey, > > Why is this necessary? I would omit this from this change.
Because it is illegal to implicitly cast an `enum class` to an integer - One of the stronger protections enum class provides. Without this change, this patch rightfully fails to build!
Brady Eidson
Comment 5
2015-04-27 11:47:46 PDT
http://trac.webkit.org/changeset/183405
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