Closed jasonintju closed 1 year ago
The extension only keeps track of the initial URL where the script was injected, as per Chrome messaging. Basically this is on the messaging port of the comms channel between the page and the extension background. The port/url is assigned when the listener is started.
See
The extension UI will always display the same URL as retrieved from the page itself by the background handler since that is the actual location the request for authorization was made from, aka the actual message to request was sent from that specific location, hence being available on the chrome messaging object.
Closing, question answered.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
I'm submitting a ...
What is the current behavior and expected behavior? current behavior: the url in the extension popup was different with the website url when AuthorizeReq or SigningReq or otherReq expected behavior: they should be same at any time, in any page
I recorded a video(https://youtu.be/rC1kklIgiNY) to tell the details.
It seems that the wallet only remembered the website url when loading page, after that, the url was keep unchanged, which is incorrect. The url in the popup should be same with the website url at anytime, in any page.
And I also tested https://kusama.polkassembly.io/ and https://polkadot.js.org/apps/#/accounts, they both have the same problem.
By the way, the demo repository was here https://github.com/jasonintju/test-polkadot-ext-popup-url
Please tell us about your environment:
Version: 0.44.8
Environment:
Language: