Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091753

WebView/WebEngine should provide a way to control navigation

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web

      Description

      It is hard to build a 'child-safe' custom browser, as there is currently no simple way to veto location changes.
      While you could scrape the hyperlinks after the page is loaded, and manipulate them, it would be a lot easier if a developer could just specify a 'navigateRequestHandler' callback.
      The semantics are simple: unless the callback is set and returns Boolean.FALSE the user can navigate to the new location

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: