Changeset 239221 in webkit


Ignore:
Timestamp:
Dec 14, 2018 10:26:47 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Prefer "about:blank" instead of an empty string for WebPageDebuggable url
https://bugs.webkit.org/show_bug.cgi?id=192691
<rdar://problem/46719798>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2018-12-14
Reviewed by Darin Adler.

  • UIProcess/WebPageDebuggable.cpp:

(WebKit::WebPageDebuggable::url const):
Instead of an empty string, return "about:blank" in bail cases.
When inspecting the page that matches the contents.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r239219 r239221  
     12018-12-14  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Prefer "about:blank" instead of an empty string for WebPageDebuggable url
     4        https://bugs.webkit.org/show_bug.cgi?id=192691
     5        <rdar://problem/46719798>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UIProcess/WebPageDebuggable.cpp:
     10        (WebKit::WebPageDebuggable::url const):
     11        Instead of an empty string, return "about:blank" in bail cases.
     12        When inspecting the page that matches the contents.
     13
    1142018-12-14  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/WebPageDebuggable.cpp

    r238206 r239221  
    5656{
    5757    if (!m_page.mainFrame())
    58         return String();
     58        return "about:blank"_s;
    5959
    6060    String url = m_page.mainFrame()->url().string();
    61     return url.isEmpty() ? "about:blank"_s : url;
     61    if (url.isEmpty())
     62        return "about:blank"_s;
     63
     64    return url;
    6265}
    6366
Note: See TracChangeset for help on using the changeset viewer.