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

fix: make sure script and stack are both decoded before comparing #31037

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Feb 6, 2025

Additional details

With 14.0.2, we attempted to fix the privileged command channel by encoding the script uri to more accurately compare apples to apples when checking where the privileged command was invoked. However, the stack traces are not exactly encoded exactly to the specification, which caused other errors when trying to check the privileged command.

To solve this, we are going to try comparing apples to apples via decoding the stack and the script name, so the text comparisons should match.

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker force-pushed the fix/em_dash_priv_command branch from f8cfff3 to 2df81c1 Compare February 6, 2025 16:50
Copy link

cypress bot commented Feb 6, 2025

cypress    Run #60302

Run Properties:  status check passed Passed #60302  •  git commit 9c06d2af39: fix: decode both script and stack before making comparison in the priv channel. ...
Project cypress
Branch Review fix/em_dash_priv_command
Run status status check passed Passed #60302
Run duration 17m 18s
Commit git commit 9c06d2af39: fix: decode both script and stack before making comparison in the priv channel. ...
Committer AtofStryker
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 28
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 762
View all changes introduced in this branch ↗︎
UI Coverage  63.64%
  Untested elements 30  
  Tested elements 56  
Accessibility  96.18%
  Failed rules  0 critical   4 serious   1 moderate   0 minor
  Failed elements 197  

…v channel. If decode sequencing fails, return false
@AtofStryker AtofStryker force-pushed the fix/em_dash_priv_command branch from 57de5d5 to 9c06d2a Compare February 10, 2025 15:27
@AtofStryker AtofStryker merged commit f9e872d into develop Feb 10, 2025
96 of 99 checks passed
@AtofStryker AtofStryker deleted the fix/em_dash_priv_command branch February 10, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants