Bug 256692 - More explicit error message for new URL("/")
Summary: More explicit error message for new URL("/")
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Karl Dubost
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-12 02:30 PDT by Karl Dubost
Modified: 2023-05-16 16:21 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.