WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
65319
[GTK] Use GRefPtr for SOUP_TYPE_CONTENT_DECODER in WebKit2.
https://bugs.webkit.org/show_bug.cgi?id=65319
Summary
[GTK] Use GRefPtr for SOUP_TYPE_CONTENT_DECODER in WebKit2.
Lukasz Slachciak
Reported
2011-07-28 07:42:35 PDT
Use GRefPtr for decoder (SOUP_TYPE_CONTENT_DECODER) reference tracking, the same way as other SoupSessionFeature's.
Attachments
SOUP_TYPE_CONTENT_DECODER fix
(1.79 KB, patch)
2011-07-28 07:43 PDT
,
Lukasz Slachciak
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Lukasz Slachciak
Comment 1
2011-07-28 07:43:42 PDT
Created
attachment 102257
[details]
SOUP_TYPE_CONTENT_DECODER fix
Martin Robinson
Comment 2
2011-08-03 05:44:39 PDT
Comment on
attachment 102257
[details]
SOUP_TYPE_CONTENT_DECODER fix View in context:
https://bugs.webkit.org/attachment.cgi?id=102257&action=review
> Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:65 > - soup_session_add_feature_by_type(session, SOUP_TYPE_CONTENT_DECODER); > + GRefPtr<SoupSessionFeature> decoder = adoptGRef(static_cast<SoupSessionFeature*>(g_object_new(SOUP_TYPE_CONTENT_DECODER, NULL))); > + soup_session_add_feature(session, decoder.get());
Why is this an improvement?
Martin Robinson
Comment 3
2011-08-03 05:45:09 PDT
(In reply to
comment #2
)
> (From update of
attachment 102257
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=102257&action=review
> > > Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:65 > > - soup_session_add_feature_by_type(session, SOUP_TYPE_CONTENT_DECODER); > > + GRefPtr<SoupSessionFeature> decoder = adoptGRef(static_cast<SoupSessionFeature*>(g_object_new(SOUP_TYPE_CONTENT_DECODER, NULL))); > > + soup_session_add_feature(session, decoder.get()); > > Why is this an improvement?
By this I mean, why don't we just use soup_session_add_feature_by_type everywhere?
Lukasz Slachciak
Comment 4
2011-08-03 13:11:48 PDT
Comment on
attachment 102257
[details]
SOUP_TYPE_CONTENT_DECODER fix View in context:
https://bugs.webkit.org/attachment.cgi?id=102257&action=review
>>> Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:65 >>> + soup_session_add_feature(session, decoder.get()); >> >> Why is this an improvement? > > By this I mean, why don't we just use soup_session_add_feature_by_type everywhere?
I wanted just to have all features initialized in the same way. In fact we don't need to use GRefPtr here. For me it looks like that we can have soup_session_add_feature_by_type for all features.
Martin Robinson
Comment 5
2011-08-03 14:47:41 PDT
If that's possible, let's do that. :) It will cut down on the number of lines of code.
Sergio Villar Senin
Comment 6
2012-03-30 10:21:53 PDT
The patch added after
bug 68602
changes the way we initialize libsoup features so this is no longer needed.
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