Agreed. If we know any specific URLs that sites are loading their script
from, then we can at least override them with the shim feature I'm adding
to the compat addon right now. But beyond that, we will have to think of
other means.
On Tue, Jun 30, 2020 at 3:06 PM Thomas Wisniewski <
twisn...@mozilla.com>
wrote:
> > Wild thought, would site break if the full fastClick code was replaced
> by a placebo?
>
> Technically no, unless I'm missing something subtle. That's why we can
> just work around it so that their "not needed" code returns true. But the
> problem is finding a way to (efficiently) detect their code, and not run
> it. For instance, if Gecko could detect window.FastClick being set to a
> value, at which point we could change it to a shim of our own which does
> nothing (a placebo). So we could shim the cases where it's loaded by a
> script tag loading a known URL (from a CDN, for instance). But it gets more
> complicated for code which is webpacked or otherwise bundled by a site,
> especially when they don't set window.FastClick, but place it on some other
> variable (and maybe even end up calling it some minified variable rather
> than FastClick).
>
> On Tue, Jun 30, 2020 at 2:48 PM Karl Dubost <
kdu...@mozilla.com> wrote:
>
>>
>>
>> Le 1 juil. 2020 à 02:25, Thomas Wisniewski <
twisn...@mozilla.com> a
>> écrit :
>> Their bug for the future usage.
>> But Fastclick is most of the time legacy code which is not updated and is
>> not needed anymore on any sites, because browsers now handle what they were
>> trying to fix.
>>
>> Wild thought, would site break if the full fastClick code was replaced
>> by a placebo?