You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and if 'about:blank' somehow sneaks in there, the CriticalRequestChains formatter throws.
Simple example is node lighthouse-cli/index.js http://pwa.rocks (which redirects to https://pwa.rocks). I get this report (see last images/icon-228x228.png entry):
the about:blank line is actually the bigger issue. No idea where that's coming from, and it's causing the CRC formatter to throw here, because url.parse('about:blank').path is null.
The text was updated successfully, but these errors were encountered:
About the first case - this issue is not specific to redirects. If you go directly to https://pwa.rocks, the request to the icon is still attributed to Initial Navigation. I'm tempted to say this is working as expected - favicons and icons are handled quite differently by the browser and is not directly initiated by the html document. For example, the browser will still request a favicon at the default url even if the html document doesn't mention it.
It is possible that there are other requests that have no parent because we have incomplete information, and which should not be attributed to the initial navigation. http://crbug.com/570298 is dealing with this issue and hopefully we won't have to fix anything on lighthouse side.
The about:blank in the second case is very strange and almost definitely a bug - I'm investigating.
Looks like aliexpress is indeed navigating to about:blank for an iframe.
Since this navigation is done by the page, it should show up on the critical request chain. The initiator of this request should probably be the js script that does the navigation - I'll make sure http://crbug.com/570298 is aware of this case. The url parsing code should be fixed so it can handle about:blank, since clearly webpages are allowed to make requests like this.
and if 'about:blank' somehow sneaks in there, the
CriticalRequestChains
formatter throws.Simple example is
node lighthouse-cli/index.js http://pwa.rocks
(which redirects tohttps://pwa.rocks
). I get this report (see lastimages/icon-228x228.png
entry):A bigger issue is
node lighthouse-cli/index.js https://aliexpress.com
, which redirects several times. The report:the
about:blank
line is actually the bigger issue. No idea where that's coming from, and it's causing the CRC formatter to throw here, becauseurl.parse('about:blank').path
isnull
.The text was updated successfully, but these errors were encountered: