Problem/Motivation

Discovered in #3260032: CKEditor 5 adds ie11.user.warnings library to every page, triggering a FOUC even for anonymous users

When #3206686: IE11 warning for CKE5 in Drupal 9 was implemented, there were some console errors we considered acceptable, but none that obstructed page load or overall use. There have been changes since then that result in a less elegant failure

Steps to reproduce

Load a node edit page with CKEditor 5 in IE11

Proposed resolution

As I investigated solutions, I noticed that CKEditor5.es6 uses Object.entries(), and that is not something covered by our transpilation, nor is there a core polyfill for it. There would be benefits in having the solution implemented here prevented those calls to Object.entries(), as it would eliminate the need to polyfill/babel plugin code for a confirmed-incompatible browser.

Remaining tasks

Fix it

Don't apply to 10.0.x, since IE isn't supported at all.

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3266310

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bnjmnm created an issue. See original summary.

bnjmnm’s picture

Status: Active » Needs review

Little hacky? Maybe! On the plus side, this isn't needed for 10.0.x since IE11 is no longer supported.

Wim Leers’s picture

Status: Needs review » Needs work
Issue tags: +blocker
longwave’s picture

Status: Needs work » Reviewed & tested by the community

+1 to the killswitch idea, might also help in the other issue. RTBC assuming bot agrees.

lauriii’s picture

Tested manually with IE 11 and reviewed the MR. Left one minor nitpick which could be fixed on commit. Could someone create a Drupal 10 patch for this?

bnjmnm’s picture

Nit fixed in the patches.

  • lauriii committed 29ab012 on 10.0.x
    Issue #3266310 by bnjmnm, Wim Leers, longwave: IE11 user warning has...

  • lauriii committed 16a374d on 9.4.x
    Issue #3266310 by bnjmnm, Wim Leers, longwave: IE11 user warning has...

  • lauriii committed 802ec71 on 9.3.x
    Issue #3266310 by bnjmnm, Wim Leers, longwave: IE11 user warning has...
lauriii’s picture

Version: 9.4.x-dev » 9.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed 29ab012 and pushed to 10.0.x. Committed Drupal 9 patch to 9.4.x and cherry-picked to 9.3.x since CKEditor 5 is experimental. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.