Bug 256692

Summary: More explicit error message for new URL("/")
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: Web InspectorAssignee: Karl Dubost <karlcow>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Karl Dubost 2023-05-12 02:30:47 PDT
Steps to reproduce

1. Open Web Inspector on STP 169
2. Go to console
3. type new URL("/")

Expected:
A bit more details on the message.

Actual:
TypeError: Type error
URL
Global Code


Firefox returns the most helpful message.
> URL constructor: / is not a valid URL.



see https://twitter.com/DasSurma/status/1656607199387430914
Comment 1 Radar WebKit Bug Importer 2023-05-12 02:31:00 PDT
<rdar://problem/109253920>
Comment 2 Karl Dubost 2023-05-12 02:54:18 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13802
Comment 3 EWS 2023-05-16 16:21:49 PDT
Committed 264129@main (e60a65f91bc5): <https://commits.webkit.org/264129@main>

Reviewed commits have been landed. Closing PR #13802 and removing active labels.