You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]The Proxy in Server package has a critical bug when replace `top` to `self`[/-][+]The Proxy in Server package has a critical bug when replace `top` with `self`[/+]on Jul 24, 2019
Hey @indooorsman, this is intended behavior in Cypress in order to have sites tested in Cypress work correctly - as they are run from within an iframe - and some sites have framebusting code.
I'd like to more fully understand the error you are getting and the unintended effect that Cypress seems to have caused in your application though. Can you post the error and explain the unexpected behavior more fully? Thanks.
@indooorsman Thanks. Yeah, indeed - I agree this RegExp is too lenient in this situation and is definitely a problem. Thanks for clearing this up - we need to fix this.
changed the title [-]The Proxy in Server package has a critical bug when replace `top` with `self`[/-][+]RegExp for modifyObstructiveCode replaces var names started with `top` with `self` when it shouldn't[/+]on Jul 26, 2019
Activity
[-]The Proxy in Server package has a critical bug when replace `top` to `self`[/-][+]The Proxy in Server package has a critical bug when replace `top` with `self`[/+]jennifer-shehane commentedon Jul 24, 2019
Hey @indooorsman, this is intended behavior in Cypress in order to have sites tested in Cypress work correctly - as they are run from within an iframe - and some sites have framebusting code.
You can turn off this behavior by setting
modifyObstructiveCode: false
in your configuration.I'd like to more fully understand the error you are getting and the unintended effect that Cypress seems to have caused in your application though. Can you post the error and explain the unexpected behavior more fully? Thanks.
indooorsman commentedon Jul 25, 2019
@jennifer-shehane Thanks for your reply, the error is
selfTarget is not defined
.The original code:
In cypress it's replaced with:
Of course,
selfTarget
is not defined.And I think the regexp
topOrParentEqualityBeforeRe
has bugs.About setting
modifyObstructiveCode
in configuration, it's better to have a default value offalse
in my opinion.jennifer-shehane commentedon Jul 26, 2019
@indooorsman Thanks. Yeah, indeed - I agree this RegExp is too lenient in this situation and is definitely a problem. Thanks for clearing this up - we need to fix this.
top
orparent
would be replaced by self #4831[-]The Proxy in Server package has a critical bug when replace `top` with `self`[/-][+]RegExp for modifyObstructiveCode replaces var names started with `top` with `self` when it shouldn't[/+]13 remaining items