Why does CefSharp re-write a URL for custom scheme?
202 views
Skip to first unread message
dirk_...@gmx.de
unread,
Feb 12, 2015, 12:18:18 PM2/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cefs...@googlegroups.com
I have extended my list of CefSharp samples (see my last post) with a sample that can browse the content of a zip file. Now, I'd like to extend this sample to be able to browse any zip file on the local file system and I am finding it hard to understand how to do this because the URL is re-written when I point it to a local path.
To test this, you can have a look at sample 5 and set the address to a local path, like so:
the value of request.Url is now this (the colon character is missing and everything is lower case) : "local://c/temp/web.zip/index.html"
Now I am not really bothered about the case since the Windows filesystem is case insensitive but I'd like to understand why this re-write happens and how I should incorporate a local file path into a custom scheme URL?
Alex Maitland
unread,
Feb 15, 2015, 6:25:14 AM2/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
It would appear that some of the values passed to `AddCustomScheme` are hard coded, so changes to `CefSharp` maybe required for your scenario. Feel free to submit a PR to our github project.
Alex Maitland
unread,
Feb 15, 2015, 7:33:26 AM2/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cefs...@googlegroups.com
I actually had some relevant changes sitting on another branch, so I've merged them just now.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cefs...@googlegroups.com
Thanks for the quick help. I was actually able to extend the samples such that I know have a WPF sample that can load HTML files from any zip based container stored in the file system:
I also learned from a different comment that I can get the current version 39.0.0 from MyGet.org, which works great for me. Thanks a lot for this great project.