Changeset 257973 in webkit


Ignore:
Timestamp:
Mar 6, 2020 2:02:27 AM (4 years ago)
Author:
Lauro Moura
Message:

[WPE][WebDriver] MiniBrowser should react to close session commands
https://bugs.webkit.org/show_bug.cgi?id=207529

Reviewed by Carlos Garcia Campos.

Do not call g_object_unref on the first created view if it has already
been disposed in the "close" signal handler.

Based on original patch by Yury Semikhatsky.

  • MiniBrowser/wpe/main.cpp:

(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r257972 r257973  
     12020-03-06  Lauro Moura <lmoura@igalia.com>
     2
     3        [WPE][WebDriver] MiniBrowser should react to close session commands
     4        https://bugs.webkit.org/show_bug.cgi?id=207529
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Do not call g_object_unref on the first created view if it has already
     9        been disposed in the "close" signal handler.
     10
     11        Based on original patch by Yury Semikhatsky.
     12
     13        * MiniBrowser/wpe/main.cpp:
     14        (main):
     15
    1162020-03-06  Michael Catanzaro  <mcatanzaro@gnome.org>
    217
  • trunk/Tools/MiniBrowser/wpe/main.cpp

    r256302 r257973  
    289289        nullptr));
    290290    g_object_unref(settings);
     291    g_object_add_weak_pointer(G_OBJECT(webView), reinterpret_cast<void**>(&webView));
    291292
    292293    backendPtr->setInputClient(std::make_unique<InputClient>(loop, webView));
     
    327328    g_main_loop_run(loop);
    328329
    329     g_object_unref(webView);
     330    if (webView) {
     331        g_object_remove_weak_pointer(G_OBJECT(webView), reinterpret_cast<void**>(&webView));
     332        g_object_unref(webView);
     333    }
    330334    if (privateMode || automationMode)
    331335        g_object_unref(webContext);
Note: See TracChangeset for help on using the changeset viewer.