<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebProcess should run cleanup on quit to release resources"
   href="https://bugs.webkit.org/show_bug.cgi?id=168126">168126</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] WebProcess should run cleanup on quit to release resources
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>olivier.blin&#64;softathome.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>annulen&#64;yandex.ru, bugs-noreply&#64;webkitgtk.org, cgarcia&#64;igalia.com, mcatanzaro&#64;igalia.com, zan&#64;falconsigh.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When the UI Process is closed, the WebProcess does not always run a proper cleanup, and may not properly close system resources.
For example, the MediaPlayerPrivateGStreamerBase destructor may not be called.

This can be especially annoying on embedded devices, where video drivers do not always run a device cleanup when the process using it is terminated.

This has been seen initially on WebKitForWayland with GStreamer, and WebKitGTK has the same behavior.

When exiting MiniBrowser by closing the graphical window, WebPage::close() is called on the WebProcess, and it leads most of the time to a successful call of ~MediaPlayerPrivateGStreamerBase().
When exiting MiniBrowser from command line with Ctrl-C, SIGINT is sent to all process in the process group, and WebProcess quits without properly destroying its objects.
When exiting MiniBrowser with killall (SIGTERM), the WebProcess also quits without destroying its objects.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>