Source Maps and simulated domains

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Source Maps and simulated domains

Postby darrinm » Thu Oct 08, 2020 2:20 pm

I am using a custom CefResourceManager::Provider to map subdomains to local directories. This works great except it seems that Chromium doesn't use the resource manager when it retrieves source maps so I get errors and no source maps :(.

Code: Select all
DevTools failed to load SourceMap: Could not load content for https://manager.ua.app/static/js/bundle.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load SourceMap: Could not load content for https://manager.ua.app/static/js/1.chunk.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED

Is there away to intercept Chromium's source map requests like other browser requests?

Thanks much!
darrinm
Newbie
 
Posts: 5
Joined: Mon Sep 28, 2020 9:30 pm

Re: Source Maps and simulated domains

Postby magreenblatt » Thu Oct 08, 2020 3:19 pm

What OS and CEF version? Do you get CefResourceRequestHandler callbacks or those resources?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Source Maps and simulated domains

Postby darrinm » Thu Oct 08, 2020 4:39 pm

Mac OS 10.15.6 (19G2021), CEF 85.3.11. No I don't see CefResourceRequestHandler, e.g. OnBeforeResourceLoad, callbacks for those resources.
darrinm
Newbie
 
Posts: 5
Joined: Mon Sep 28, 2020 9:30 pm

Re: Source Maps and simulated domains

Postby magreenblatt » Thu Oct 08, 2020 4:53 pm

OK, thanks for checking. Please add a bug in the issue tracker.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Source Maps and simulated domains

Postby darrinm » Thu Oct 08, 2020 6:54 pm

Thanks, will do. A point of interest, source map requests do appear to be special to Chrome (not referring to CEF here). For example, they are not reflected in the DevTools Network panel.

More info regarding that on SO: https://stackoverflow.com/a/38061555/707320
darrinm
Newbie
 
Posts: 5
Joined: Mon Sep 28, 2020 9:30 pm

Re: Source Maps and simulated domains

Postby jchoover » Fri Feb 26, 2021 2:44 pm

Was an issue ever logged on this? I'd like to monitor it's progress, as I recently stumbled across this as well.
jchoover
Newbie
 
Posts: 1
Joined: Thu Aug 13, 2020 1:13 pm

Re: Source Maps and simulated domains

Postby amaitland » Fri Feb 26, 2021 4:07 pm

Chromium still has some bugs related to source maps

https://bugs.chromium.org/p/chromium/is ... id=1069378

Not specifically related to this, just posting as a general reference.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests