Bug 163504 - [GTK] Some WebKitWebContext is always leaked
Summary: [GTK] Some WebKitWebContext is always leaked
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2016-10-16 11:19 PDT by Michael Catanzaro
Modified: 2017-09-21 07:07 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2016-10-16 11:19:14 PDT
We intentionally leak the default WebKitWebContext, but WebProcessPool is tracked by our leak checker so in debug builds we get a report of one leaked web context per web process. It's definitely a bug for any class tracked by leak checker to ever be leaked. We need to decide whether to free the default web context (possibly risky: I'm tired of bugs caused by destroying stuff at exit time, and this is a GObject) or to just not track leaks of WebProcessPools.
Comment 1 Michael Catanzaro 2017-09-21 07:07:17 PDT
Hm, I'm not sure about this anymore. I remember at some point debugging the problem and discovering that the default WebKitWebContext is never created by Epiphany. I wonder where I posted my analysis of that; I don't remember. :/ I think the problem might be a reference cycle inside WebKit somewhere.