Skip to content

[Bug]: In will-navigate e.preventDefault() does not prevent navigation to about: urls #31783

Open
@mckravchyk

Description

@mckravchyk

Preflight Checklist

Electron Version

13.6.1, 15.3.1, 16.0.0.b8

What operating system are you using?

Other Linux

Operating System Version

5.14.12

What arch are you using?

x64

Last Known Working Electron version

unknown

Expected Behavior

Calling e.preventDefault in will-navigate event handler should prevent any navigation within webContents frame.

Actual Behavior

This does not work if the url being navigated to is an about: url, such as about:blank, about: Even random about urls like about:vh99fh2 will cause navigating away.

Testcase Gist URL

https://gist.github.com/mckravchyk/5673785c24dfcda54b648aa418b4cc40

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy