Customize Chromium/Google Chrome error pages

前端 未结 2 1473
孤独总比滥情好
孤独总比滥情好 2021-01-17 16:34

How can I customize the error pages Google Chrome/Chromium displays when there is a networking error (e.g. Error 137 net::ERR_NAME_RESOLUTION_FAILED)

I\'m talking a

2条回答
  •  萌比男神i
    2021-01-17 17:06

    No, trapping is not possible, and the HTML for the error pages gets built at runtime from compiled resources. See http://src.chromium.org/viewvc/chrome/trunk/src/chrome/renderer/localized_error.cc?view=markup for the code that builds these error pages.

提交回复
热议问题