WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
118239
[GTK] Make DRT obbey testRunner's addURLToRedirect
https://bugs.webkit.org/show_bug.cgi?id=118239
Summary
[GTK] Make DRT obbey testRunner's addURLToRedirect
Simon Pena
Reported
2013-07-01 06:22:40 PDT
[GTK] Make DRT obbey testRunner's addURLToRedirect
Attachments
Patch
(3.90 KB, patch)
2013-07-01 06:28 PDT
,
Simon Pena
no flags
Details
Formatted Diff
Diff
Patch
(3.79 KB, patch)
2013-07-16 01:37 PDT
,
Simon Pena
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Simon Pena
Comment 1
2013-07-01 06:28:23 PDT
Created
attachment 205805
[details]
Patch
Gustavo Noronha (kov)
Comment 2
2013-07-15 09:03:35 PDT
Comment on
attachment 205805
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=205805&action=review
r- because of the leak
> Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:1305 > + if (destination.length())
Checking for length() here feels wrong to me, there is empty(), but it looks like the Mac port does the same so *shrug*.
> Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:1306 > + webkit_network_request_set_uri(request, strdup(destination.c_str()));
Should not need to strdup the string here. Did you have trouble with the c_str() being destroyed early or something? In any case, you are leaking the result here since set_uri does not take ownership of the passed string.
Simon Pena
Comment 3
2013-07-16 01:37:21 PDT
Created
attachment 206740
[details]
Patch
Simon Pena
Comment 4
2013-07-16 01:38:54 PDT
(In reply to
comment #2
)
> (From update of
attachment 205805
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=205805&action=review
> > r- because of the leak > > > Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:1305 > > + if (destination.length()) > > Checking for length() here feels wrong to me, there is empty(), but it looks like the Mac port does the same so *shrug*. > > > Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:1306 > > + webkit_network_request_set_uri(request, strdup(destination.c_str())); > > Should not need to strdup the string here. Did you have trouble with the c_str() being destroyed early or something? In any case, you are leaking the result here since set_uri does not take ownership of the passed string.
Thanks for catching that! I failed to clear it after checking a different thing. I also used empty(), since it's true that it feels more natural.
Gustavo Noronha (kov)
Comment 5
2013-07-17 08:10:51 PDT
Comment on
attachment 206740
[details]
Patch thanks!
WebKit Commit Bot
Comment 6
2013-07-17 08:33:24 PDT
Comment on
attachment 206740
[details]
Patch Clearing flags on attachment: 206740 Committed
r152782
: <
http://trac.webkit.org/changeset/152782
>
WebKit Commit Bot
Comment 7
2013-07-17 08:33:27 PDT
All reviewed patches have been landed. Closing bug.
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