Changeset 232832 in webkit


Ignore:
Timestamp:
Jun 13, 2018 11:39:15 PM (6 years ago)
Author:
Adrian Perez de Castro
Message:

[WPE] Trying to access the remote inspector hits an assertion in the UIProcess
https://bugs.webkit.org/show_bug.cgi?id=186588

Reviewed by Carlos Garcia Campos.

Make both the WPE and GTK+ ports use /org/webkit/inspector as base prefix
for resource paths, which avoids needing a switcheroo depending on the port.

Source/JavaScriptCore:

  • inspector/remote/glib/RemoteInspectorUtils.cpp:

Source/WebKit:

  • UIProcess/API/wpe/WebKit2InspectorGResourceBundle.xml:
  • UIProcess/gtk/WebInspectorProxyGtk.cpp:

(WebKit::WebInspectorProxy::inspectorPageURL):
(WebKit::WebInspectorProxy::inspectorTestPageURL):
(WebKit::WebInspectorProxy::inspectorBaseURL):

  • UIProcess/wpe/WebInspectorProxyWPE.cpp:

(WebKit::WebInspectorProxy::inspectorPageURL):
(WebKit::WebInspectorProxy::inspectorTestPageURL):
(WebKit::WebInspectorProxy::inspectorBaseURL):

  • WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp:

(WebKit::WebInspectorUI::localizedStringsURL):
(WebKit::RemoteWebInspectorUI::localizedStringsURL):

Tools:

  • WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp:

(WTR::TestRunner::inspectorTestStubURL):

  • glib/generate-inspector-gresource-manifest.py:
Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r232816 r232832  
     12018-06-13  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [WPE] Trying to access the remote inspector hits an assertion in the UIProcess
     4        https://bugs.webkit.org/show_bug.cgi?id=186588
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Make both the WPE and GTK+ ports use /org/webkit/inspector as base prefix
     9        for resource paths, which avoids needing a switcheroo depending on the port.
     10
     11        * inspector/remote/glib/RemoteInspectorUtils.cpp:
     12
    1132018-06-13  Caitlin Potter  <caitp@igalia.com>
    214
  • trunk/Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorUtils.cpp

    r230585 r232832  
    3333#include <wtf/SHA1.h>
    3434
    35 #if PLATFORM(GTK)
    36 #define INSPECTOR_BACKEND_COMMANDS_PATH "/org/webkitgtk/inspector/UserInterface/Protocol/InspectorBackendCommands.js"
    37 #elif PLATFORM(WPE)
    38 #define INSPECTOR_BACKEND_COMMANDS_PATH "/org/wpe/inspector/UserInterface/Protocol/InspectorBackendCommands.js"
    39 #endif
     35#define INSPECTOR_BACKEND_COMMANDS_PATH "/org/webkit/inspector/UserInterface/Protocol/InspectorBackendCommands.js"
    4036
    4137namespace Inspector {
  • trunk/Source/WebKit/ChangeLog

    r232824 r232832  
     12018-06-13  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [WPE] Trying to access the remote inspector hits an assertion in the UIProcess
     4        https://bugs.webkit.org/show_bug.cgi?id=186588
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Make both the WPE and GTK+ ports use /org/webkit/inspector as base prefix
     9        for resource paths, which avoids needing a switcheroo depending on the port.
     10
     11        * UIProcess/API/wpe/WebKit2InspectorGResourceBundle.xml:
     12        * UIProcess/gtk/WebInspectorProxyGtk.cpp:
     13        (WebKit::WebInspectorProxy::inspectorPageURL):
     14        (WebKit::WebInspectorProxy::inspectorTestPageURL):
     15        (WebKit::WebInspectorProxy::inspectorBaseURL):
     16        * UIProcess/wpe/WebInspectorProxyWPE.cpp:
     17        (WebKit::WebInspectorProxy::inspectorPageURL):
     18        (WebKit::WebInspectorProxy::inspectorTestPageURL):
     19        (WebKit::WebInspectorProxy::inspectorBaseURL):
     20        * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp:
     21        (WebKit::WebInspectorUI::localizedStringsURL):
     22        (WebKit::RemoteWebInspectorUI::localizedStringsURL):
     23
    1242018-06-13  Chris Dumez  <cdumez@apple.com>
    225
  • trunk/Source/WebKit/UIProcess/API/wpe/WebKit2InspectorGResourceBundle.xml

    r216497 r232832  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<gresources>
    3   <gresource prefix="/org/wpe/inspector/UserInterface">
     3  <gresource prefix="/org/webkit/inspector/UserInterface">
    44    <file>inspectorPageIndex.html</file>
    55  </gresource>
  • trunk/Source/WebKit/UIProcess/gtk/WebInspectorProxyGtk.cpp

    r229396 r232832  
    339339String WebInspectorProxy::inspectorPageURL()
    340340{
    341     return String("resource:///org/webkitgtk/inspector/UserInterface/Main.html");
     341    return String("resource:///org/webkit/inspector/UserInterface/Main.html");
    342342}
    343343
    344344String WebInspectorProxy::inspectorTestPageURL()
    345345{
    346     return String("resource:///org/webkitgtk/inspector/UserInterface/Test.html");
     346    return String("resource:///org/webkit/inspector/UserInterface/Test.html");
    347347}
    348348
    349349String WebInspectorProxy::inspectorBaseURL()
    350350{
    351     return String("resource:///org/webkitgtk/inspector/UserInterface/");
     351    return String("resource:///org/webkit/inspector/UserInterface/");
    352352}
    353353
  • trunk/Source/WebKit/UIProcess/wpe/WebInspectorProxyWPE.cpp

    r223773 r232832  
    8484String WebInspectorProxy::inspectorPageURL()
    8585{
    86     return String("resource:///org/wpe/inspector/UserInterface/Main.html");
     86    return String("resource:///org/webkit/inspector/UserInterface/Main.html");
    8787}
    8888
    8989String WebInspectorProxy::inspectorTestPageURL()
    9090{
    91     return String("resource:///org/wpe/inspector/UserInterface/Test.html");
     91    return String("resource:///org/webkit/inspector/UserInterface/Test.html");
    9292}
    9393
    9494String WebInspectorProxy::inspectorBaseURL()
    9595{
    96     return String("resource:///org/wpe/inspector/UserInterface/");
     96    return String("resource:///org/webkit/inspector/UserInterface/");
    9797}
    9898
  • trunk/Source/WebKit/WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp

    r205369 r232832  
    4242String WebInspectorUI::localizedStringsURL()
    4343{
    44     return String("resource:///org/webkitgtk/inspector/Localizations/en.lproj/localizedStrings.js");
     44    return String("resource:///org/webkit/inspector/Localizations/en.lproj/localizedStrings.js");
    4545}
    4646
    4747String RemoteWebInspectorUI::localizedStringsURL()
    4848{
    49     return String("resource:///org/webkitgtk/inspector/Localizations/en.lproj/localizedStrings.js");
     49    return String("resource:///org/webkit/inspector/Localizations/en.lproj/localizedStrings.js");
    5050}
    5151
  • trunk/Tools/ChangeLog

    r232820 r232832  
     12018-06-13  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [WPE] Trying to access the remote inspector hits an assertion in the UIProcess
     4        https://bugs.webkit.org/show_bug.cgi?id=186588
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Make both the WPE and GTK+ ports use /org/webkit/inspector as base prefix
     9        for resource paths, which avoids needing a switcheroo depending on the port.
     10
     11        * WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp:
     12        (WTR::TestRunner::inspectorTestStubURL):
     13        * glib/generate-inspector-gresource-manifest.py:
     14
    1152018-06-11  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    216
  • trunk/Tools/WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp

    r225671 r232832  
    7070JSRetainPtr<JSStringRef> TestRunner::inspectorTestStubURL()
    7171{
    72     return JSStringCreateWithUTF8CString("resource:///org/webkitgtk/inspector/UserInterface/TestStub.html");
     72    return JSStringCreateWithUTF8CString("resource:///org/webkit/inspector/UserInterface/TestStub.html");
    7373}
    7474
  • trunk/Tools/glib/generate-inspector-gresource-manifest.py

    r224877 r232832  
    6868    """<?xml version=1.0 encoding=UTF-8?>
    6969    <gresources>
    70         <gresource prefix="/org/webkitgtk/inspector">
     70        <gresource prefix="/org/webkit/inspector">
    7171""")
    7272
Note: See TracChangeset for help on using the changeset viewer.