-
-
Notifications
You must be signed in to change notification settings - Fork 918
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
Hiperlinks are broken #1980
Comments
Maybe I'm wrong, but I think this is only a secondary effect of the new-win-policy not executing. betaflight-configurator/src/js/main.js Lines 87 to 103 in f9235b5
Doing a debug, the |
It seems the open in external browser policy is broken since some versions ago... I have tested version 10.3 and it works perfectly, with or without the |
I thought it was working. I know its been wrestled with a few times. |
Links open properly in my install of 10.6.0, I looked into this a bit and I'm pretty sure this is related to NW.js changing how they interact with windows https://nwjs.io/blog/nw2-mode/ nwjs/nw.js#7377 mentions that we can temporarily disable NW2 for now, and I've filed nwjs/nw.js#7451 @mikeller can you confirm either failure or success on opening links on your end? |
Yes, I have been testing things thinking the same. 10.6 works. Executing 10.7 with Maybe has changed when the window is available. I will look back to see what is the latest version working of nw.js. We can fix it too with jquery intercepting the external link calls, but I don't know if it is the best solution... |
Try reverting the code, the last change there to iterate through getAll is
where it stops working with nw1
…On Fri, Apr 24, 2020, 2:39 AM Míguel Ángel Mulero Martínez < ***@***.***> wrote:
Yes, I have been testing things thinking the same. 10.6 works. Executing
10.7 with --disable-features=nw2 does not work neither.
Maybe has changed when the window is available. I will look back to see
what is the latest version working of nw.js.
We can fix it too with jquery intercepting the external link calls, but I
don't know if it is the best solution...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1980 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABOQ2ZRPW2RH5XHUNRCF7LROFM4LANCNFSM4MPGKHGQ>
.
|
I have used the simple get() that we have before. Tested:
I will look at the changelog, but I doubt I can see something. |
Is the first version with NW2 mode... so you are right @Docteh |
I think we maybe use the windows in a different manner of the rest of people. Here is the issue that made the So maybe our use of nw.js is a little strange... |
I think maybe I know what happens...
According to node documentation, the background page does not have a corresponding window, because is a "batch" execution. In our code we CLOSE the NW window (file main_nwjs.html) and we open the main.html from the background page. Maybe since nw2 the context of this open window remains without associated window? I suppose this was done in this way to maintain compatibility with Chrome OS. I'm not too sure, but this maybe explains why this bug seems only affect to us. |
I've been playing with this with different results. After some "patches" to ignore the Chrome part and open directly the nw window, I can attach the new function for the new window policy, but I get this error after the first click on a link:
Someone knows how to fix that? Maybe some permissions missing in the manifest? The most curious thing is that if after that I execute this in the console: |
Interesting - I have been testing with hyperlinks both on 10.6.0 and |
We can probably handle it. I'm lost in the weeds trying to replicate success :) just tried For some reason @McGiverGim are those changes available in a public/private branch? I've forgotten some of the git terminology, I want to pull your change down from your fork if its pushed there. |
No, I will try to push it in some hours, but is only a patch to verify my supposition, is not a solution to the problem. |
@Docteh: Sorry, that was a red herring - when testing again I found that it is broken in linux as well - I suspect the successful testing was in a pull request that came before the one where I added
|
https://github.com/Docteh/betaflight-configurator/tree/nw2 This is what I came up with, but ports do not appear to be scanned initially, and the
Since we're intending to assign the With NWjs we can disable the nw2 "feature". https://nwjs.io/blog/nw2-mode/ Says that 0.42.4 is first version with NW2, so 0.43 may have this feature? If you pick a version I can check it out. Looks like 0.43.0 to 0.43.6 are your options. I'll check back in a few more hours after @McGiverGim looks at things. 🛏️ |
@Docteh my branch is here: https://github.com/McGiverGim/betaflight-configurator/tree/test_fix_external_url I simply changed the event page where we open a Chrome window:
By a node_main.js page where we open a nw window:
With this the links work because the
So it seems clear that maybe the nw.js people have forgotten to attach the nw window at the chrome window in nw2. @mikeller I think is a good idea to maintain the |
I forgot to say: 0.45 does not fix this. I tested yesterday. The latest version that works out of the box is 0.42.3 (the latest without nw2). |
Oh, NWjs is intentionally migrating away from the |
Then I think we must release with version 0.42.3 and remove the Chrome support for next version, as we have discussed several times :( |
#1982 should fix this. Turns out that #782 was always a hack, it would have sufficed back then to add an id for the application window to enable size / position restore. Re
To me, both of these together strongly suggest that we should not go on and add more complexity to set this on dynamically loaded links for something that does not do anything. Re. future plans for a webapp, let's try and not build things for future eventuality - experience tells me that this is almost always a waste of time, as by the time something is used the conditions will have changed. Also re translators, I think this is a good argument for not setting But pulling these out can wait until 10.7 has gone out. |
Thankyou guys for getting involved in solving this, seems that finnaly we have a temporal solution for NW2(remove it temporaly). |
Href attribute is broken and unable to load the requested links. This occurs throughout all of the Configurator Hiperlinks:
I can see that removing
ref: noopener nooreferrer
it works as expected, but idont know if remove all refs is the right solution:The text was updated successfully, but these errors were encountered: