Changeset 239221 in webkit
- Timestamp:
- Dec 14, 2018 10:26:47 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239219 r239221 1 2018-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 1 14 2018-12-14 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/WebPageDebuggable.cpp
r238206 r239221 56 56 { 57 57 if (!m_page.mainFrame()) 58 return String();58 return "about:blank"_s; 59 59 60 60 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; 62 65 } 63 66
Note: See TracChangeset
for help on using the changeset viewer.