WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
178178
[GLib] WebKitNavigationAction should tell whether it is a redirect
https://bugs.webkit.org/show_bug.cgi?id=178178
Summary
[GLib] WebKitNavigationAction should tell whether it is a redirect
Gustavo Noronha (kov)
Reported
2017-10-11 11:37:59 PDT
[GLib] WebKitNavigationAction should tell whether it is a redirect
Attachments
Patch
(8.92 KB, patch)
2017-10-11 11:41 PDT
,
Gustavo Noronha (kov)
cgarcia
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gustavo Noronha (kov)
Comment 1
2017-10-11 11:41:26 PDT
Created
attachment 323435
[details]
Patch
Build Bot
Comment 2
2017-10-11 11:43:15 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
Michael Catanzaro
Comment 3
2017-10-11 12:32:49 PDT
Comment on
attachment 323435
[details]
Patch LGTM. Carlos Garcia will surely want to do the final review, since it's new API.
Adrian Perez
Comment 4
2017-10-12 02:39:53 PDT
Comment on
attachment 323435
[details]
Patch Same opinion as Michael: Looks good to me, but I am not a reviewer yet so let's wait for Carlos to take a look.
Carlos Garcia Campos
Comment 5
2017-10-13 01:58:54 PDT
Comment on
attachment 323435
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=323435&action=review
LGTM, thanks!
> Source/WebKit/UIProcess/API/glib/WebKitNavigationAction.cpp:158 > + * Return whether the navigation had a redirect.
@navigation I'm confused here about the use of "had".
> Source/WebKit/UIProcess/API/glib/WebKitNavigationAction.cpp:160 > + * Returns: whether the original navigation was redirected.
for boolean functions we normally use the pattern %TRUE if bla bla bla, or %FALSE otherwise.
Gustavo Noronha (kov)
Comment 6
2017-10-13 10:07:40 PDT
Committed
r223282
: <
https://trac.webkit.org/changeset/223282
>
Michael Catanzaro
Comment 7
2017-10-14 17:03:39 PDT
(In reply to Carlos Garcia Campos from
comment #5
)
> for boolean functions we normally use the pattern %TRUE if bla bla bla, or > %FALSE otherwise.
Personally, I omit the "or %FALSE otherwise" because it's obvious.
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