For Attribution Reporting, the attributionsrc attribute was already unintentionally processed on <area> elements due to code shared with <a>, which intentionally supported that attribute. For completeness, we expose the attribute on <area> with identical syntax and semantics to <a> and without changing the previous processing: When an <area> tag with an attributionsrc attribute is navigated, the foreground request may register navigation sources and, if the attribute is non-empty, one or more background requests will likewise be able to register navigation sources.
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
No.
None
This is a minor change largely reusing existing code and behavior. The only web-exposed detail here is the addition of an already-processed HTML attribute to the corresponding tag's IDL definition.
Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?
No.Shipping on desktop | 133 |
Shipping on Android | 133 |
Shipping on WebView | 133 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
n/aOn 11/21/24 12:49 PM, Chromestatus wrote:
Contact emails
apase...@chromium.org
Explainer
https://github.com/WICG/attribution-reporting-api/blob/main/EVENT.md#registering-attribution-sources
Specification
https://wicg.github.io/attribution-reporting-api/#html-monkeypatches
Summary
For Attribution Reporting, the attributionsrc attribute was already unintentionally processed on <area> elements due to code shared with <a>, which intentionally supported that attribute. For completeness, we expose the attribute on <area> with identical syntax and semantics to <a> and without changing the previous processing: When an <area> tag with an attributionsrc attribute is navigated, the foreground request may register navigation sources and, if the attribute is non-empty, one or more background requests will likewise be able to register navigation sources.
--
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 visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/673f72a6.2b0a0220.3bb1d2.02f2.GAE%40google.com.
On 11/21/24 12:49 PM, Chromestatus wrote:
Is this something developers actually want, i.e. are imagemaps a use case advertisers are asking to be supported? If not, why not just fix what seems to be a bug?Contact emails
apase...@chromium.org
Explainer
https://github.com/WICG/attribution-reporting-api/blob/main/EVENT.md#registering-attribution-sources
Specification
https://wicg.github.io/attribution-reporting-api/#html-monkeypatches
Summary
For Attribution Reporting, the attributionsrc attribute was already unintentionally processed on <area> elements due to code shared with <a>, which intentionally supported that attribute. For completeness, we expose the attribute on <area> with identical syntax and semantics to <a> and without changing the previous processing: When an <area> tag with an attributionsrc attribute is navigated, the foreground request may register navigation sources and, if the attribute is non-empty, one or more background requests will likewise be able to register navigation sources.
On 11/21/24 1:37 PM, Andrew Paseltiner wrote:
On Thu, Nov 21, 2024 at 1:26 PM Mike Taylor <mike...@chromium.org> wrote:On 11/21/24 12:49 PM, Chromestatus wrote:
Is this something developers actually want, i.e. are imagemaps a use case advertisers are asking to be supported? If not, why not just fix what seems to be a bug?Contact emails
apase...@chromium.org
Explainer
https://github.com/WICG/attribution-reporting-api/blob/main/EVENT.md#registering-attribution-sources
Specification
https://wicg.github.io/attribution-reporting-api/#html-monkeypatches
Summary
For Attribution Reporting, the attributionsrc attribute was already unintentionally processed on <area> elements due to code shared with <a>, which intentionally supported that attribute. For completeness, we expose the attribute on <area> with identical syntax and semantics to <a> and without changing the previous processing: When an <area> tag with an attributionsrc attribute is navigated, the foreground request may register navigation sources and, if the attribute is non-empty, one or more background requests will likewise be able to register navigation sources.
It's true that we haven't specifically heard from developers that they want this, but we also don't have any data about whether the existing behavior is being relied on, and I'm not clear on the prevalence of image maps for the relevant use cases in general. Is there existing precedent for supporting a navigation-related feature on <a> but not <area>?
Given that we support this on multiple other navigation surfaces (<a>, window.open, and context-menu on <a>), and that the fix is quite simple, I'd err on the side of not breaking anyone, but we could also try to gather usage data first.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5f406b3c-98f1-4f62-94e9-43e61bba4556%40chromium.org.