Problem/Motivation

The X-UA-Compatibleheader allows indicating to Internet Explorer that it should render the page in the document mode for a previous version of Internet Explorer. Setting the value to IE=edge ensures that the page is rendered in standards mode when a valid DOCTYPE is not provided, but otherwise has no effect.

With Drupal 9 only supporting IE 11, and Drupal 10 no longer supporting IE, this header can be removed.

@see
https://docs.microsoft.com/en-us/openspecs/ie_standards/ms-iedoco/380e24...
https://docs.microsoft.com/en-ca/previous-versions/windows/internet-explorer/ie-developer/dev-guides/bg182625(v=vs.85)#document-mode-changes

Steps to reproduce

Proposed resolution

Remove setting X-UA-Compatible from FinishResponseSubscriber

Remaining tasks

Release notes snippet

Issue fork drupal-3214211

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:

Comments

gapple created an issue. See original summary.

gapple’s picture

Issue summary: View changes
Status: Active » Needs review

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gapple’s picture

Setting meta issue as parent

longwave’s picture

Status: Needs review » Reviewed & tested by the community

No other instances of X-UA-Compatible in core, so this is straightforward.

longwave’s picture

Version: 9.4.x-dev » 10.0.x-dev

But we can only do this in 10.0.x :)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 4c6d65d and pushed to 10.0.x. Thanks!

  • alexpott committed 4c6d65d on 10.0.x
    Issue #3214211 by gapple, longwave: Stop setting X-UA-Compatible header
    

Status: Fixed » Closed (fixed)

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