RESOLVED FIXED Bug 235045
[Cocoa] Inspector Extensions: tabIconURLs with custom scheme URLs are incorrectly loaded
https://bugs.webkit.org/show_bug.cgi?id=235045
Summary [Cocoa] Inspector Extensions: tabIconURLs with custom scheme URLs are incorre...
Blaze Burg
Reported 2022-01-10 12:48:23 PST
It looks like the conversion from NSURL -> API::URL -> WTF::URL -> WTF::String -> JSValue is not going as expected. Since we don't examine or modify the URL, it suffices to convert it to NSURL -> WTF::String -> JSValue.
Attachments
Patch v1.0 (14.25 KB, patch)
2022-01-10 12:52 PST, Blaze Burg
no flags
Patch v1.1 (2.19 KB, patch)
2022-01-10 14:41 PST, Blaze Burg
no flags
Radar WebKit Bug Importer
Comment 1 2022-01-10 12:48:48 PST
Blaze Burg
Comment 2 2022-01-10 12:52:59 PST
Created attachment 448788 [details] Patch v1.0
Devin Rousso
Comment 3 2022-01-10 13:32:21 PST
(In reply to BJ Burg from comment #0) > It looks like the conversion from NSURL -> API::URL -> WTF::URL -> WTF::String -> JSValue is not going as expected. This seems like a bug, no? Or is this expected?
Blaze Burg
Comment 4 2022-01-10 14:41:00 PST
Created attachment 448802 [details] Patch v1.1
Darin Adler
Comment 5 2022-01-10 15:04:18 PST
Comment on attachment 448802 [details] Patch v1.1 Looks good. Please note that using the URL class’s relative URL resolution doesn’t necessarily handle all the edge cases correctly and functions like Document::completeURL end up having to add special cases. So please think further on that point, for things like empty string.
Blaze Burg
Comment 6 2022-01-11 13:50:47 PST
(In reply to Darin Adler from comment #5) > Comment on attachment 448802 [details] > Patch v1.1 > > Looks good. > > Please note that using the URL class’s relative URL resolution doesn’t > necessarily handle all the edge cases correctly and functions like > Document::completeURL end up having to add special cases. So please think > further on that point, for things like empty string. Good point. In this case the code that provides the NSURL via ensures that the URL is non-nil and is not the empty string.
Blaze Burg
Comment 7 2022-01-11 13:51:15 PST
Comment on attachment 448802 [details] Patch v1.1 ios-wk2 and wincairo failures look to be infrastructure issues.
EWS
Comment 8 2022-01-11 13:58:25 PST
Committed r287895 (245933@main): <https://commits.webkit.org/245933@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 448802 [details].
Note You need to log in before you can comment on or make changes to this bug.