{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/navigation-precommit-handlers",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "navigation-precommit-handlers",
    "name": "Navigation precommit handlers",
    "description": "The precommitHandler callback option to NavigateEvent's intercept() method returns a promise that defers navigation until the promise resolves. You can use this to change the navigation's URL, state, and history before navigation occurs.",
    "group": "navigation",
    "groupName": "Navigation",
    "spec": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationinterceptoptions-precommithandler",
    "baseline": false,
    "compatCount": 4,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.NavigateEvent.intercept.precommitHandler_option",
      "api.NavigationPrecommitController",
      "api.NavigationPrecommitController.addHandler",
      "api.NavigationPrecommitController.redirect"
    ],
    "s": {
      "chrome": {
        "v": "146",
        "d": 20522
      },
      "chrome_android": {
        "v": "146",
        "d": 20522
      },
      "edge": {
        "v": "146",
        "d": 20525
      },
      "firefox": {
        "v": "148",
        "d": 20508
      },
      "firefox_android": {
        "v": "148",
        "d": 20508
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.NavigateEvent.intercept.precommitHandler_option",
      "cat": "api",
      "spec": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationinterceptoptions-precommithandler",
      "st": 1,
      "wf": "navigation-precommit-handlers",
      "bl": false,
      "s": {
        "chrome": {
          "v": "141",
          "d": 20361
        },
        "firefox": {
          "v": "147",
          "d": 20466
        },
        "edge": {
          "v": "141",
          "d": 20364
        },
        "chrome_android": {
          "v": "141",
          "d": 20361
        },
        "firefox_android": {
          "v": "147",
          "d": 20466
        },
        "webview_android": {
          "v": "141",
          "d": 20361
        },
        "samsunginternet_android": {
          "v": "30.0",
          "d": 20584
        },
        "opera": {
          "v": "125",
          "d": 20426
        },
        "opera_android": {
          "v": "93",
          "d": 20417
        },
        "oculus": {
          "v": "42.0",
          "d": 20479
        }
      }
    },
    {
      "id": "api.NavigationPrecommitController",
      "cat": "api",
      "mdn": "API/NavigationPrecommitController",
      "spec": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationprecommitcontroller-interface",
      "st": 1,
      "wf": "navigation-precommit-handlers",
      "bl": false,
      "s": {
        "chrome": {
          "v": "141",
          "d": 20361
        },
        "firefox": {
          "v": "147",
          "d": 20466
        },
        "edge": {
          "v": "141",
          "d": 20364
        },
        "chrome_android": {
          "v": "141",
          "d": 20361
        },
        "firefox_android": {
          "v": "147",
          "d": 20466
        },
        "webview_android": {
          "v": "141",
          "d": 20361
        },
        "samsunginternet_android": {
          "v": "30.0",
          "d": 20584
        },
        "opera": {
          "v": "125",
          "d": 20426
        },
        "opera_android": {
          "v": "93",
          "d": 20417
        },
        "oculus": {
          "v": "42.0",
          "d": 20479
        }
      }
    },
    {
      "id": "api.NavigationPrecommitController.addHandler",
      "cat": "api",
      "mdn": "API/NavigationPrecommitController/addHandler",
      "spec": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationprecommitcontroller-addhandler",
      "st": 1,
      "wf": "navigation-precommit-handlers",
      "bl": false,
      "s": {
        "chrome": {
          "v": "146",
          "d": 20522
        },
        "firefox": {
          "v": "148",
          "d": 20508
        },
        "edge": {
          "v": "146",
          "d": 20525
        },
        "chrome_android": {
          "v": "146",
          "d": 20522
        },
        "firefox_android": {
          "v": "148",
          "d": 20508
        },
        "webview_android": {
          "v": "146",
          "d": 20522
        },
        "samsunginternet_android": {
          "v": "31.0",
          "d": 20719
        },
        "opera": {
          "v": "130",
          "d": 20551
        },
        "opera_android": {
          "v": "97",
          "d": 20559
        }
      }
    },
    {
      "id": "api.NavigationPrecommitController.redirect",
      "cat": "api",
      "mdn": "API/NavigationPrecommitController/redirect",
      "spec": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationprecommitcontroller-redirect",
      "st": 1,
      "wf": "navigation-precommit-handlers",
      "bl": false,
      "s": {
        "chrome": {
          "v": "141",
          "d": 20361
        },
        "firefox": {
          "v": "147",
          "d": 20466
        },
        "edge": {
          "v": "141",
          "d": 20364
        },
        "chrome_android": {
          "v": "141",
          "d": 20361
        },
        "firefox_android": {
          "v": "147",
          "d": 20466
        },
        "webview_android": {
          "v": "141",
          "d": 20361
        },
        "samsunginternet_android": {
          "v": "30.0",
          "d": 20584
        },
        "opera": {
          "v": "125",
          "d": 20426
        },
        "opera_android": {
          "v": "93",
          "d": 20417
        },
        "oculus": {
          "v": "42.0",
          "d": 20479
        }
      }
    }
  ]
}