Bug 256692
Summary: | More explicit error message for new URL("/") | ||
---|---|---|---|
Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
Component: | Web Inspector | Assignee: | 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 |
Karl Dubost
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/109253920>
Karl Dubost
Pull request: https://github.com/WebKit/WebKit/pull/13802
EWS
Committed 264129@main (e60a65f91bc5): <https://commits.webkit.org/264129@main>
Reviewed commits have been landed. Closing PR #13802 and removing active labels.