Customize Chromium/Google Chrome error pages

前端 未结 2 1441
孤独总比滥情好
孤独总比滥情好 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条回答
  • 2021-01-17 16:46

    No :( Correct link at this moment: https://chromium.googlesource.com/chromium/chromium/+/master/chrome/renderer/localized_error.cc

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题