[Webkit-unassigned] [Bug 155080] New: [SOUP] Issues with CustomProtocolManagerImpl::registerScheme?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 5 17:56:36 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=155080
Bug ID: 155080
Summary: [SOUP] Issues with
CustomProtocolManagerImpl::registerScheme?
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: PC
OS: Linux
Status: NEW
Severity: Minor
Priority: P2
Component: WebKit Gtk
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
CC: bugs-noreply at webkitgtk.org
I don't understand the implementation of CustomProtocolManagerImpl::registerScheme.
* It calls g_type_class_ref twice for no apparent reason, and with no paired calls to g_type_class_unref that I could find. The second use should probably be g_type_class_peek instead. Maybe the first use should be paired with a g_type_class_unref somewhere. Even if we don't care about leaking the class struct, I don't see why we should ref it twice in the same place.
* It assigns |this| to the |client| member of WebKitSoupRequestGenericClass, but that means it will clobber any other CustomProtocolManagerImpls that have previously registered themselves with the WebKitSoupRequestGenericClass struct. I guess only a single CustomProtocolManagerImpl is ever intended to be created, but it's not a singleton, so it feels kinda fragile.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160306/42b8d381/attachment-0001.html>
More information about the webkit-unassigned
mailing list