question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove patches/chrome-browser-net-net_error_tab_helper.cc.patch

See original GitHub issue

Description

The purpose of this patch is to disable DNS probing whenever a page fails to load with a DNS-related error, which seems to be the main reason for NetErrorTabHelper existence. The other use of an instance of this class is from chrome/browser/offline_pages/offline_page_utils.cc, where it’s retrieved from the WebContents to determine whether a download button should be shown from an error page:

bool OfflinePageUtils::IsShowingDownloadButtonInErrorPage(
    content::WebContents* web_contents) {
  chrome_browser_net::NetErrorTabHelper* tab_helper =
      chrome_browser_net::NetErrorTabHelper::FromWebContents(web_contents);
  return tab_helper && tab_helper->is_showing_download_button_in_error_page();
}

However, this relies on NetErrorTabHelper::is_showing_download_button_in_error_page(), which is only defined if chromium is built with enable_offline_pages = true, which is not the case for Brave.

Therefore, it should be possible to drop this patch by simply avoiding the instantiation of NetErrorTabHelper and getting it added to the relevant WebContents in the first place.

Desktop Brave version:

Brave 1.22.28 (Chromium 89.0.4389.48)

Miscellaneous Information:

For QA purposes: this cleanup touched code added to fix bug https://github.com/brave/brave-browser/issues/3249, so please make sure behaviour remains the same (there’s a test plan specified in that issue).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jumdecommented, Mar 10, 2021

that’s good!

1reaction
mariosprcommented, Mar 4, 2021

@mariospr looks like the issue you referenced, #3249, is only a Windows issue. Is it appropriate to change this issue from Android/Desktop to Windows only?

Yes, sorry for the confusion (it was my fault for not properly setting the tags). Please do move it to Windows-only, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unofficial Skyrim Creation Club Content Patches - Nexus Mods
This is a bundle of patches to fix the bugs in the Skyrim Creation Club content as well as resolve conflicts between Creation...
Read more >
How to Remove Sewn On Patches – Do It Yourself
Steps for Removing a Sewn On Patch. Bend the underlying fabric down from the patch to expose the stitches as much as possible....
Read more >
how to remove the Patch from console - Stack Overflow
Starting with Windows Installer 3.0, you can uninstall patches. There are two methods you can use on the command line: Using MSIPATCHREMOVE on...
Read more >
Remove pixel patches according to patch size
Is there any way to remove pixels from a classified image? For example, I made an NDVI classification in Google Earth Engine Code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found