scratch-vm icon indicating copy to clipboard operation
scratch-vm copied to clipboard

about:blank returns an error with Scratch.openWindow()

Open hammouda101010 opened this issue 1 year ago • 6 comments

somehow, this link is considered bad by the API, despite being included inside the browser itself, idk why. maybe it's protocol's not http?

anyways, you should fix this bug, it shouldn't be that hard

Image

hammouda101010 avatar Feb 05 '25 18:02 hammouda101010

What is this being used for

I'm asking because "Project wants to open about:blank" is not really a useful prompt that users can be expected to understand and I assume literally opening a blank window and doing nothing with it is not what you're trying to do

GarboMuffin avatar Feb 05 '25 18:02 GarboMuffin

You are allowed to use window.open directly by the way. You can tell the linter to stop complaining. But it needs some justification

GarboMuffin avatar Feb 05 '25 18:02 GarboMuffin

What is this being used for

I'm asking because "Project wants to open about:blank" is not really a useful prompt that users can be expected to understand and I assume literally opening a blank window and doing nothing with it is not what you're trying to do

about:blank serves as a placeholder for when your browser doesn’t have content to display. It’s essentially the browser saying, “I’m ready, but there’s nothing here yet.” You might encounter this when opening a blank tab, clicking on a misconfigured link, or during certain troubleshooting scenarios.

copied this here

hammouda101010 avatar Feb 05 '25 19:02 hammouda101010

I know what it is.

What do you want to use it for.

GarboMuffin avatar Feb 05 '25 20:02 GarboMuffin

Or do you literally just want to open a blank page. Like this indeed isn't hard to implement, I'm just trying to understand

GarboMuffin avatar Feb 05 '25 23:02 GarboMuffin

Or do you literally just want to open a blank page. Like this indeed isn't hard to implement, I'm just trying to understand

Sometimes it can be used for programmatic reasons or other shit I'm to dumb to understand, but this is a pretty silly bug of refusing to open a freaking empty page

hammouda101010 avatar Feb 06 '25 15:02 hammouda101010