XLabs / portal-bridge-ui

Portal Bridge UI
https://www.portalbridge.com/
25 stars 37 forks source link

[bug] Page is not refreshing when Rabby wallet is enabled/disabled by clicking on refresh the web page link #757

Open AigaD opened 7 months ago

AigaD commented 7 months ago

Is there an existing issue for this?

Current Behavior

When enabling Rabby wallet, by clicking on "Please refresh the web page and retry" link, it is not reacting. Console shows error Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'wasm-unsafe-eval' 'self'".

Expected Behavior

Page is refreshed after clicking on "Please refresh the web page and retry" link.

Steps To Reproduce

  1. Enable Rabby wallet in Rabby wallet extension
  2. Observe that pop-up "Rabby is your default wallet now. Please refresh the web page and retry" is shown
  3. Click on refresh the web page
  4. Observe

Environment

- OS: macOS Ventura 13.0.1
- Wallet: Rabby, Metamask
- Browser: Chrome Version 121.0.6167.85
- Tested from: 
https://portalbridge.com/ -  Tested NOK
https://wormhole-connect-mainnet.netlify.app/# - Tested OK

Anything else?

https://github.com/XLabs/portal-bridge-ui/assets/91047061/40dd36c4-f3e4-40c8-9263-f71a00f592bd

AigaD commented 7 months ago

Reproduced from: https://preview.portalbridge.com/ Page is not refreshed when switching to/from Rabby/Metamask wallet Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/f2394cfd-08f5-44a9-9305-b82e885e690b

AigaD commented 7 months ago

Reproduced from: https://preview.portalbridge.com/b05f4e9322/ and https://preview.portalbridge.com/b1ba6e856a/ Page is not refreshed when clicking on "refresh the web page" on Rabby pop-up message Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/ac86c95b-edd2-44d3-9b2d-ded5a1c051e4

AigaD commented 7 months ago

Reproduced from: https://preview.portalbridge.com/b05f4e9322/ Link to refresh the page is not reacting when Rabby wallet is enabled/ disabled Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/eee4ba2d-22b4-4af2-a085-7f7279ffd25c

AigaD commented 7 months ago

Reproduced from: https://preview.portalbridge.com/8228d00809/ Page is not refreshing when clicking on Rabby wallet pop-up, Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'wasm-unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/340290b7-345e-4414-9ad8-d0ac784897e6

AigaD commented 6 months ago

Reproduced from: https://preview.portalbridge.com/8228d00809/# 11Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'wasm-unsafe-eval' 'self'". Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/087ab812-1b62-48e1-afc3-a54208fe796b

AigaD commented 5 months ago

Reproduced from: https://preview.portalbridge.com/bceadc8c64/# Page is not refreshed when switching to/from Rabby wallet Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/61c29b5d-c0df-4c3d-86b0-b0cfe18e7da5

AigaD commented 5 months ago

Reproduced from: https://preview.portalbridge.com/3064c36d95/#

Attachment:

https://github.com/XLabs/portal-bridge-ui/assets/91047061/3408ce18-0eef-47a1-b951-77ad29749a55