-
Notifications
You must be signed in to change notification settings - Fork 15k
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
will-navigate
not triggered for some website.
#14751
Comments
Faced the same issue. Reproducible on 3.0.0 and 3.0.2. I found that 'will-navigate' is triggered whenever any link is clicked but is not triggered when location is changed by form submission. |
2.0.10 works well |
I also face this issue! Please fix this asap! |
In my experience it seems to fail on the vast majority of navigations. You can bind up to the If you're following the security advice on navigation and haven't noticed this, there's potential for security holes downstream :-/ |
same on Electron 3.0.5 |
same on Electron 3.0.8 |
use did-navigate it works to me! :) |
Is the a planned fix version for this? |
Even 5.0.1 has this issue: Tumblr and Wordpress.com logins were affected, FB/Twitter seem okay though. |
You need to subscribe to 🔗 https://electronjs.org/docs/api/web-contents#event-will-redirect |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
Thank you for your issue! We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue. |
This problem still exists in version 6.0.2. |
As @MarshallOfSound advised, |
In my case this can be caught with https://electronjs.org/docs/tutorial/security#13-disable-or-limit-creation-of-new-windows |
The Electron version reported on this issue is no longer supported. See our supported versions documentation. If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know. Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated. |
node_modules/.bin/electron --version
: 3.0.0-beta8node_modules/.bin/electron --version
on last known working Electron version (if applicable): 3.0.0Expected Behavior
will-navigate
event can be triggered successfully.Actual behavior
will-navigate
is not triggered.To Reproduce
We have
QQ
oath login function in our electron app. The oauth url looks likehttps://graph.qq.com/oauth2.0/authorize?client_id=xxx&redirect_uri=xxx&response_type=code&scope=get_user_info&state=xxx
.We can success catch the
will-navigate
event inelectron@2.0.8
as well as2.0.10
, but failed when update electron to 3.x(tried 3.0.0-beta8 and 3.0.0).Another
wechat
oauth function works well for both electron 2.x and 3.x and it's url looks likehttps://open.weixin.qq.com/connect/qrconnect?appid=xxx&redirect_uri=xxx&response_type=code&scope=snsapi_login&state=xxx#wechat_redirect
Additional Information
Some major code:
The text was updated successfully, but these errors were encountered: