Primary eng (and PM) emails
Summary
I intend to deprecate (and eventually remove) the `origin` property on `Document` objects.
Motivation
We've implemented a similar property on the global object: `self.origin`. Given that, the `origin` property on `Document` objects is a wart we should be able to remove in order to reduce developer confusion.
Compatibility And Interoperability Risk
Safari ships this API.Alternative implementation suggestion for web developers
The origin property on the global object is a complete replacement for `document.origin`, and has the advantage of working in both documents and workers.
Usage information from UseCounter
We don't yet have usage data. I intend to collect this data by deprecating the feature, and we can make a decision about removal when we have some data to go on. Given that it's not implemented in Edge or Firefox, I expect usage to be low.
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=692084
Entry on the feature dashboard
https://www.chromestatus.com/feature/5701042356355072
Requesting approval to remove too?
No, but I'd aim for ~59ish if the numbers look reasonable.
-mike
LGTM to deprecate
LGTM to deprecate
--
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+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
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+unsubscribe@chromium.org.
That's a good point that the UseCounter would be inflated. Someone should post the explicit httparchive data here as a replacement though, plus perhaps a github search or other data points.
On Tue, Feb 14, 2017 at 9:07 AM, Philip Jägenstedt <foo...@chromium.org> wrote:
Given that this is an attribute on document, a use counter will almost certainly be inflated beyond the point of being useful. An analysis of 'document.origin' matches from httparchive might tell us immediately if removal is going to be safe. There are only a couple of hundred results, which in itself is promising.
On Wed, Feb 15, 2017 at 12:03 AM Chris Harrelson <chri...@chromium.org> wrote:
I don't think we should deprecate without data supporting our ability to remove it. Let's get UseCounter data first.On Tue, Feb 14, 2017 at 8:25 AM, Jochen Eisinger <joc...@chromium.org> wrote:LGTM to deprecate
Boris Zbarsky <bzba...@mit.edu> schrieb am Di., 14. Feb. 2017, 17:09:On 2/14/17 10:15 AM, Mike wrote:
> Compatibility And Interoperability Risk
>
> Safari ships this API.
Though note that the values in shipping Safari don't match Blink's
(returns "https_webkit.org_0" instead of "https://webkit.org", for
example). But they just changed that in webkit tip. See
https://bugs.webkit.org/show_bug.cgi?id=168022
So the interop risk is a bit lower than if they were already shipping a
compatible version.
-Boris
--
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.
--
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 unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
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+unsubscribe@chromium.org.
If the use counter is going to be "so inflated that it can't be useful" I assume from folks iterating the document properties, doesn't that mean deprecating it would spam all those users too?
It seems unfortunate to break the process here. We shouldn't add console warnings without knowing how many users were going to spam with it.
This doesn't seen urgent, I'd prefer we used the normal deprecation process.
-mike
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
--
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.
On Tuesday, February 14, 2017 at 10:33:03 PM UTC+1, Elliott Sprehn wrote:If the use counter is going to be "so inflated that it can't be useful" I assume from folks iterating the document properties, doesn't that mean deprecating it would spam all those users too?I recognize the concern around spamming developers. That said, if we allow that to be an overriding concern, then I don't see how we can ever deprecate anything on `document` or `self`, which seems unfortunate. :)It seems unfortunate to break the process here. We shouldn't add console warnings without knowing how many users were going to spam with it.Break the process? "Intent to deprecate" is the process, isn't it? The template suggests as much: "'No' means you will be showing a deprecation warning and counting feature usage with the intent of removing support. Please indicate the milestone you intend to remove the API by (which should be included in the deprecation message)."
On Tue, Feb 14, 2017 at 10:33 PM, Mike <mk...@chromium.org> wrote:On Tuesday, February 14, 2017 at 10:33:03 PM UTC+1, Elliott Sprehn wrote:If the use counter is going to be "so inflated that it can't be useful" I assume from folks iterating the document properties, doesn't that mean deprecating it would spam all those users too?I recognize the concern around spamming developers. That said, if we allow that to be an overriding concern, then I don't see how we can ever deprecate anything on `document` or `self`, which seems unfortunate. :)It seems unfortunate to break the process here. We shouldn't add console warnings without knowing how many users were going to spam with it.Break the process? "Intent to deprecate" is the process, isn't it? The template suggests as much: "'No' means you will be showing a deprecation warning and counting feature usage with the intent of removing support. Please indicate the milestone you intend to remove the API by (which should be included in the deprecation message)."You sent an Intent to Deprecate without having done any measurement of how spammy it would be. I don't think it's reasonable to make a go/no go assessment on a deprecation without having done the measurement first. Adding a UseCounter is the usual process I was referring to.
Also your query to httparchive seems to look for document.origin, but lots of code is minified. How common is ".origin" ?