Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FED-2880 Fix Blink-based Microsoft Edge Browser Detection #79

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

aaronlademann-wf
Copy link
Contributor

Currently, the modern Edge browser gets detected as Chrome - which is not ideal for logging purposes.

The browser - from a feature-set standpoint - literally IS Chrome - so it should remain being detected as such, but its name/version should reflect the application itself - not just the platform it is built atop of.


Also boy scouted some missing test coverage for the legacy (MSIE-based) Edge browser.

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

Comment on lines +59 to +63
expect([browser.isChrome, browser.isEdgeChrome], everyElement(isTrue),
reason:
'Blink-based Edge browser should be detected as both Chrome and Edge '
'since feature support is based on Chrome, but should identify as Edge '
'for logging purposes');
Copy link
Contributor Author

@aaronlademann-wf aaronlademann-wf Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test ensures that any consumer's pre-existing feature-based business logic keying off of isChrome remains unchanged for Edge browsers.

robbecker-wf
robbecker-wf previously approved these changes Jun 28, 2024
Copy link
Member

@robbecker-wf robbecker-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+10

@aaronlademann-wf
Copy link
Contributor Author

@Workiva/release-management-pp

@robbecker-wf
Copy link
Member

@Workiva/release-management-p

@rm-astro-wf rm-astro-wf merged commit c09ccbd into master Jun 28, 2024
5 checks passed
Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rm-astro-wf rm-astro-wf deleted the FED-2880_fix-edge-detection branch June 28, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants