Commit 7341f7d
committed
Assert that canonicalizePathname, canonicalizeSearch, and canonicalizeHash cannot fail
https://bugs.webkit.org/show_bug.cgi?id=290113
Reviewed by Youenn Fablet.
Although the specification seems to assume these operations can fail,
they cannot.
* Source/WebCore/Modules/url-pattern/URLPatternCanonical.cpp:
(WebCore::canonicalizePathname):
(WebCore::canonicalizeSearch):
(WebCore::canonicalizeHash):
Canonical link: https://commits.webkit.org/292579@main1 parent 2db0901 commit 7341f7d
1 file changed
Lines changed: 3 additions & 9 deletions
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
| 199 | + | |
202 | 200 | | |
203 | 201 | | |
204 | 202 | | |
| |||
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
238 | | - | |
239 | | - | |
240 | | - | |
| 236 | + | |
241 | 237 | | |
242 | 238 | | |
243 | 239 | | |
| |||
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 254 | + | |
261 | 255 | | |
262 | 256 | | |
263 | 257 | | |
| |||
0 commit comments