Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Intent to ship: Array.prototype.values

瀏覽次數:159 次
跳到第一則未讀訊息

Tom Schuster

未讀,
2018年2月2日 上午8:46:192018/2/2
收件者:dev-pl...@lists.mozilla.org
We already tried to ship Array.prototype.values before in Firefox 48,
but this broke
Microsoft Dynamics CRM 2011
(https://bugzilla.mozilla.org/show_bug.cgi?id=1299593). We are however
aware this might have caused other breakages as well.

The compatibility risk for this change is high.
However Chrome is going to try shipping this again (third time!)
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/yX4U__z67xo

Edge and Safari already ship this feature.

Bug to turn on by default: https://bugzilla.mozilla.org/show_bug.cgi?id=1420101

Any additional ideas how to mitigate the risk here? Chrome seems to
want to add a kill pref for this, from my experience more difficult
for us with the way we define methods in SpiderMonkey. Should that be
a requirement for shipping?

Andrew Overholt

未讀,
2018年2月2日 上午9:28:142018/2/2
收件者:Tom Schuster、Emilio Cobos Álvarez、dev-platform
On Fri, Feb 2, 2018 at 8:45 AM, Tom Schuster <t...@schuster.me> wrote:

> Chrome seems to
> want to add a kill pref for this, from my experience more difficult
> for us with the way we define methods in SpiderMonkey. Should that be
> a requirement for shipping?
>

If it's not too difficult it does make it a lot easier to fix things if it
causes major breakage. I think we can even do a pref flip without shipping
an update which is pretty nice.

Is there a way to do per-site pref changes? Did we do this for Stylo,
Emilio?

Boris Zbarsky

未讀,
2018年2月2日 上午9:40:382018/2/2
收件者:
On 2/2/18 8:45 AM, Tom Schuster wrote:
> Should that be a requirement for shipping?

Imo, yes, given the history of trying to ship this in the past (had to
be backed out for web compat fail twice, etc).

-Boris

Lars Hansen

未讀,
2018年2月2日 上午9:56:342018/2/2
收件者:Tom Schuster、dev-platform
On Fri, Feb 2, 2018 at 2:45 PM, Tom Schuster <t...@schuster.me> wrote:

> Any additional ideas how to mitigate the risk here? Chrome seems to
> want to add a kill pref for this, from my experience more difficult
> for us with the way we define methods in SpiderMonkey. Should that be
> a requirement for shipping?
>

​Don't we need that type of availability mechanism to support
HTTPS-everywhere anyway? "All new features..."

--lars

Mike Taylor

未讀,
2018年2月2日 上午10:17:222018/2/2
收件者:Tom Schuster、dev-pl...@lists.mozilla.org
On Feb 2, 2018, at 7:45 AM, Tom Schuster <t...@schuster.me> wrote:
> Any additional ideas how to mitigate the risk here? Chrome seems to
> want to add a kill pref for this, from my experience more difficult
> for us with the way we define methods in SpiderMonkey. Should that be
> a requirement for shipping?

Add a pref enabling it for EARLY_BETA_OR_EARLIER, and false otherwise, and let’s see what Nightly/Beta shakes out for a few releases. Then we have time to attempt outreach or other such hacks before burning our release users.

--
Mike Taylor
Web Compat, Mozilla


Tom Schuster

未讀,
2018年2月2日 上午10:21:092018/2/2
收件者:Mike Taylor、dev-pl...@lists.mozilla.org
I talked to Jan de Mooij and it's feasible to add a pref for this,
so we are definitely going to do this.

Array.prototype.values has always been enabled on Nightly. Based on
where the breakage occurred, internal company webpages, I would not
expect EARLY_BETA_OR_EARLIER to shake out any additional problems.

Emilio Cobos Álvarez

未讀,
2018年2月2日 下午3:22:092018/2/2
收件者:Andrew Overholt、Tom Schuster、dev-platform
On 02/02/2018 03:27 PM, Andrew Overholt wrote:
> On Fri, Feb 2, 2018 at 8:45 AM, Tom Schuster <t...@schuster.me
> <mailto:t...@schuster.me>> wrote:
>
> Chrome seems to
> want to add a kill pref for this,  from my experience more difficult
> for us with the way we define methods in SpiderMonkey. Should that be
> a requirement for shipping?
>
>
> If it's not too difficult it does make it a lot easier to fix things if
> it causes major breakage. I think we can even do a pref flip without
> shipping an update which is pretty nice.
>
> Is there a way to do per-site pref changes? Did we do this for Stylo,
> Emilio?

We did, but it required a fair amount of machinery. The code for the
stylo domain blocklist was removed very recently in bug 1426223.

-- Emilio

Tom Schuster

未讀,
2018年2月8日 清晨6:26:542018/2/8
收件者:Mike Taylor、dev-pl...@lists.mozilla.org
I plan on landing this today, so this change is going to be in Firefox
60. The pref for enabling/disabling this feature is
javascript.options.array_prototype_values.

On Fri, Feb 2, 2018 at 4:20 PM, Tom Schuster <t...@schuster.me> wrote:
> I talked to Jan de Mooij and it's feasible to add a pref for this,
> so we are definitely going to do this.
>
> Array.prototype.values has always been enabled on Nightly. Based on
> where the breakage occurred, internal company webpages, I would not
> expect EARLY_BETA_OR_EARLIER to shake out any additional problems.
>
> On Fri, Feb 2, 2018 at 4:17 PM, Mike Taylor <mi...@mozilla.com> wrote:
>> On Feb 2, 2018, at 7:45 AM, Tom Schuster <t...@schuster.me> wrote:
>>> Any additional ideas how to mitigate the risk here? Chrome seems to
>>> want to add a kill pref for this, from my experience more difficult
>>> for us with the way we define methods in SpiderMonkey. Should that be
>>> a requirement for shipping?
>>
0 則新訊息