“about:blank” crashes brave

description: “about:blank” crashes brave

exact url: about:blank

Did the issue present with default Shields settings? yes

Does the site function as expected when Shields are turned off? no

Is there a specific Shields configuration that causes the site to break? If so, tell us that configuration. no

do other browsers (such as chrome) run the website properly? yes

Version 1.71 (125)

if it helps, i am on mobile, specifically ipad.

about:blank no crash here. Can you also re-test with the latest ver of Brave
Version 1.73.91

hmm no issue from linux maybe try reinstall brave :frowning:

@IAAdam I tested on my iPhone 13 Pro Max that’s using the same version of Brave as you reported. I’m not having any issues. Though also not sure, how/why are you navigating to about:blank?

just searching up “about:blank” will crash it

I wasn’t able to replicate this issue—nothing is crashing on my end. Not sure if anyone else will be able to replicate it either.

That said, I’m curious why this matters in the first place. On iOS, you can’t set a home page or change the New Tab Page (NTP) currently. I can’t think of any specific reason to try accessing about:blank. Just trying to wrap my head around what you were doing and whether that might play a role in the issue you’re experiencing.

i use this script to check the source code of a site on mobile (i found it on a website while looking up a way to view source codes on mobile):

javascript:(function()%7Bvar%20a=window.open(‘about:blank’).document;a.write(‘%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3ESource%20of%20’+location.href+‘%3C/title%3E%3Cmeta%20name=%22viewport%22%20content=%22width=device-width%22%20/%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E’);a.close();var%20b=a.body.appendChild(a.createElement(‘pre’));b.style.overflow=‘auto’;b.style.whiteSpace=‘pre-wrap’;b.appendChild(a.createTextNode(document.documentElement.innerHTML))%7D)();

(i set it as a bookmark, then i open the bookmark when i am on the site i wish to view the source code on)
unlike online source viewer sites, this one can view the source of a site even if it’s locked behind an authorisation script. whereas online source viewers will only show the 401* page)
i don’t have any other (easy) way to check the source of a site.

@Mattches @steeven I forget, do either of you have an iPad to try to test on this? I’ll have to try with that script just in case it’s contributing, but otherwise not replicating any issue as reported on my iPhone. Not sure if this is going to be one of those iPad only problems or if something else is at play.

@IAAdam thanks for sharing. Out of curiosity, does this happen if you try to do it from private window? Also, does it work fine in Safari and/or Chrome on the same device?

Not seeing this on my end — searching about:blank displays a tab with no content a expected. I’m curious to know if you see this same behavior when you try to go to about:blank in other browsers (namely a different Chromium based browser)?

private window also crashes, safari and chrome work fine.

update: i changed the ‘about:blank’ section of the script to something different (specifically ‘https://blank.page/‘) and the script works without crashing now. it still shows up as about:blank in the url bar but it doesn’t crash. still, if i search it up or just press search with the (about:blank page) url bar selected, it crashes.

this isn’t much of a problem to me anymore but it’s still weird that this happens.