•  
      request #18005 Race condition in locale loading for Intl polyfills
    Infos
    #18005
    Joris MASSON (jmasson)
    2021-05-28 09:55
    2020-11-17 17:13
    19532
    Details
    Race condition in locale loading for Intl polyfills

    On old browsers, polyfills are necessary to be able to compute relative time formats using the Intl APIs. Those polyfills require locale data in order to translate strings like "a year ago". This locale data was loaded alongside the polyfills themselves, which means in some cases it could execute before the polyfill. When that situation happens, the locale data is not added, and the polyfill throws an error like no locale data for "en". We should fix this load order so that the locales are always loaded after their corresponding polyfill.

    Trackers
    12.0
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2020-11-18
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2020-11-18 12:24
    • Summary
      -Feature detection for Intl polyfill is faulty 
      +Race condition in locale loading for Intl polyfills 
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    Thomas Gerbet (tgerbet)2020-11-17 17:25
    Just so you know: I implemented it this way on purpose as Tuleap is not supposed to support old Chrome/Chromium versions.