In bug 1355683 [1], I intent to unship Window.getDefaultComputedStyle
function.

This function is only implemented in Gecko. The corresponding spec
added, then renamed, then removed this API.

>From the investigation, this API is only used by jQuery [2], and jQuery
uses feature detection since they added that. They also have a
reasonable fallback path which isn't much slower, and they always cache
the result. Given that, removing this shouldn't cause any noticeable
regression.

Therefore, I tend to unship it, so that we don't need to implement it
for Stylo.


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1355683
[2] I do the investigation based on GitHub sample_contents table on
Google BigQuery, and there is no single other usage shows up there, so
I'm kind of confident that it should be safe enough. See the bug for
more details.

- Xidorn
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to