Intent to Prototype: NavigateEvent sourceElement

71 views
Skip to first unread message

Nate Chapin

unread,
Sep 25, 2023, 3:41:33 PM9/25/23
to blink-dev

Contact emails

jap...@chromium.orgdom...@chromium.org

Explainer

https://github.com/WICG/navigation-api/commit/85edaf1d4d42355b020807cd56f6a22784978c3d

Specification

None

Summary

When a navigation is initiated by an Element (i.e., a link click or a form submission), the sourceElement property on the NavigateEvent will be the initiating element.



Blink component

Blink>History

Motivation

This was requested by web developers. It provides an easy way to disambiguate which of several possible elements initiated a navigation.



Initial public proposal

https://github.com/WICG/navigation-api/issues/225

TAG review



TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: Strongly positive (https://github.com/WICG/navigation-api/issues/225)

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

Yes

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1483000

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5134353390895104

This intent message was generated by Chrome Platform Status.

Vladimir Levin

unread,
Sep 25, 2023, 4:01:50 PM9/25/23
to Nate Chapin, blink-dev
On Mon, Sep 25, 2023 at 3:41 PM Nate Chapin <jap...@chromium.org> wrote:

Contact emails

jap...@chromium.orgdom...@chromium.org

Explainer

https://github.com/WICG/navigation-api/commit/85edaf1d4d42355b020807cd56f6a22784978c3d

Specification

None

Summary

When a navigation is initiated by an Element (i.e., a link click or a form submission), the sourceElement property on the NavigateEvent will be the initiating element.



Blink component

Blink>History

Motivation

This was requested by web developers. It provides an easy way to disambiguate which of several possible elements initiated a navigation.



Initial public proposal

https://github.com/WICG/navigation-api/issues/225

TAG review


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACf%3D2LK%3DHeSj%2B5eQt1O23-TiO6Mai%2Bhdv-E%3DzMguriouYi6gVw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages