⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277417 in webkit


Ignore:
Timestamp:
May 12, 2021, 7:35:32 PM (5 years ago)
Author:
Fujii Hironori
Message:

[WinCairo] Failed to open WebInspector UI since r277231
https://bugs.webkit.org/show_bug.cgi?id=225715

Reviewed by Don Olmstead.

Windows WebKit2 failed to open WebInspector UI after r277231
changed Filesystem::pathByAppendingComponent.
"inspector-resource:///Main.html" was wrongly mapped to
"C:
Main.html".

requestURL.fileSystemPath() returns "\Main.html". The preceding
"\" should be removed before concatenating it with the bundle path
by using FileSystem::pathByAppendingComponent.

  • UIProcess/Inspector/win/InspectorResourceURLSchemeHandler.cpp:

(WebKit::InspectorResourceURLSchemeHandler::platformStartTask): Removed the preceding "\".

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r277416 r277417  
     12021-05-12  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo] Failed to open WebInspector UI since r277231
     4        https://bugs.webkit.org/show_bug.cgi?id=225715
     5
     6        Reviewed by Don Olmstead.
     7
     8        Windows WebKit2 failed to open WebInspector UI after r277231
     9        changed Filesystem::pathByAppendingComponent.
     10        "inspector-resource:///Main.html" was wrongly mapped to
     11        "C:\\Main.html".
     12
     13        requestURL.fileSystemPath() returns "\Main.html". The preceding
     14        "\" should be removed before concatenating it with the bundle path
     15        by using FileSystem::pathByAppendingComponent.
     16
     17        * UIProcess/Inspector/win/InspectorResourceURLSchemeHandler.cpp:
     18        (WebKit::InspectorResourceURLSchemeHandler::platformStartTask): Removed the preceding "\".
     19
    1202021-05-12  Brent Fulgham  <bfulgham@apple.com>
    221
  • trunk/Source/WebKit/UIProcess/Inspector/win/InspectorResourceURLSchemeHandler.cpp

    r274912 r277417  
    4545    auto& requestURL = task.request().url();
    4646    auto requestPath = requestURL.fileSystemPath();
     47    if (requestPath.startsWith("\\"))
     48        requestPath.remove(0);
    4749    auto path = URL(adoptCF(CFBundleCopyBundleURL(WebCore::webKitBundle())).get()).fileSystemPath();
    4850    path = FileSystem::pathByAppendingComponent(path, "WebInspectorUI"_s);
Note: See TracChangeset for help on using the changeset viewer.