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
Closing one tab of many sometimes closes browser #50
Comments
Back button seems to work as intended (i.e. you want to go back to the previous page which is the app that redirected you to Smart Cookie), but closing the tab shouldn't close. Thanks for reporting this - I'll work on a fix. |
Fixed! Prior tests always dumped back to the home screen whenever a tab opened by an external app was closed. Now, closing tab - by either method - returns to the app that opened it. Nice refinement over simply remaining in the browser :-) |
When SmartCookieWeb shares to SmartCookieWeb (eg via URL Forwarder), page opens in a new tab. Closing the tab returns to the home screen instead of remaining in SmartCookieWeb. |
SmartCookieWeb 7.7.3 - problem persists. |
I'm still working out the best way to fix this, but I hope to get it done in an update over the next 2 weeks or so. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still going to fix |
Finally fixed in f5bb436. It was pretty easy to do - sorry this took so long. Once I've finished testing the update to make sure there are no crashes, I'll release it (probably tomorrow or the day after). |
SmartCookieWeb 8.4.0 Forward random text to web form - works as expected :-) Hit back arrow - form resubmits (should go to previous page) Close tab - tab closes and SmartCookieWeb exits (should close tab, go to previous tab, leave SmartCookieWeb open) |
Ok, I can fix the tab closing making the browser close, but it seems like it will break the back button functionality (taking you back to the previous app). Do you think that it would be worth it? |
On my Redmi Note 4 (Miui 11 - Android 7.0) these bugs don't happen, they happened in versions before v9.0.0, if I'm not mistaken. |
Not ideal. Maybe remain in SmartCookieWeb when previous app seems invalid?
Testing on a BLU G90, Android 10, SCW 8.4.0, URL Forwarder 0.3 . . . bugs happen. Android version doesn't appear to be the difference. Any ideas? |
Maybe something related to battery optimization? When you have the opportunity, please try v9.0.3 from here on GitHub, maybe it will solve something. You can edit the app's package name to test the new version without erasing your data. In fact, in the SCW in (Settings>General Settings) you have the setting "Close browser with last tab", see if the error stops when you turn it off. |
@oonet I just tested the URL Forwarder and in fact the app closes when trying to close the page that was created. It is as if that page was identified as separate, as is the private mode. Note: I'm sorry, I didn't know the URL Forwarder, so I ended up making a mistake and confusing this bug with a very similar one that I had before and has already been solved. |
Bug not just with URL Forwarder, but URL Forwarder makes the bug easy to reproduce. That being said, you might want to take a look at it for use with SCW. For instance, for sharing data (not in SCW) with online scripts.
Maybe. Battery Saver is off. Not sure what else to try.
Close browser with last tab already off. When you have the opportunity, please try v9.0.3 from here on GitHub, maybe it will solve something. I'll try to get to it later today. . . . |
SmartCookieWeb 9.1.0 Going back continues to go to home page instead of remaining in SmartCookieWeb. |
i'm on 9.1.0-fdroid and honestly this is the only complaint i have. thank you though and keep it up! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've (finally) fixed the bug on the local copy on my PC, so the next update won't have this bug, but unfortunately my PC stopped working entirely so I'll only be able to commit the fix this weekend. |
Ok, as of cf59574 when you open a link from another app, the back button works as before, but the close tab button no longer closes the app. |
@CookieJarApps I tested and the app still closes if you use the back button of the phone (and apparently only if the tab has not fully loaded yet), however only in this case the app closes. Maybe this will help with something (this was generated by LeakCanary): ┬─── METADATA Build.VERSION.SDK_INT: 24 |
In theory the back button is working as expected now (opening a link in another app - back button returns to the previous app, but close tab button doesn't), but is there another instance where the app is closing when it shouldn't? |
If this is the expected behavior then it is working as expected, I think. My test is to share a link from another app to open on scw (In case the scw was already open previously and now it will have two tabs open), but I expected that by clicking the back button of the phone the newly opened tab would be closed and the scw would open the tab that was opened first (this is the behavior of when we closed the tab by the close tab button). |
@CookieJarApps I was testing the debug build
|
I managed to recreate the bug once, but strangely it stopped happening afterwards. I'll try on some more devices to try and see what might be causing the issue. |
@CookieJarApps I just tested the latest debug build (Android CI |
The issue with the script should be fixed in 1a272ff |
Sorry for the delay. I just tested v12.0.0-rc1 and the bug still continues. |
Is the ApkMirror tab the only tab or is the play store tab still open? |
Still open because by clicking the "APKMirror" button a new tab opens. |
Looks like the bug was fixed with the 957b87d, but I discovered another bug. To make this new bug occur you must:
|
Ok, good that that's fixed now. I might release v12 now, and then fix the 2nd bug with another update at the end of the week, but I'll try and see how easy it might be to fix. |
I had these problem with latest version of lightning so this bug may be related to its code. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Open a page in SmartCookieWeb
Link to another page from app other than SmartCookieWeb. SmartCookieWeb opens page correctly in a new tab.
Close tab (ie by pressing back arrow or Close current tab in Close Browser menu)
Window closes and SmartCookieWeb quits. (Should remain open.)
Running SmartCookieWeb returns to first tab as expected.
The text was updated successfully, but these errors were encountered: