SmartCookieWeb icon indicating copy to clipboard operation
SmartCookieWeb copied to clipboard

[Bug] if SCW get a connection refused network error it replaces url of that tab with [data:text/html;charset=utf-8;base64,] after closing and opening SCW

Open 0xRustlang opened this issue 4 years ago • 4 comments

Describe the bug

I use dns based adblockers.

Currently using this: (May be it get needed for you to reproduce the issue)

https://basic.rethinkdns.com/1:AAKAAA==

If i open a link in an article in new tab and then tab couldn't load it because of connection refused error

(my dns will response blocked queries with 0.0.0.0 so browser will show a connection refused Error)

The SCW won't keep its url after closing the browser and reopening and replace it with

data:text/html;charset=utf-8;base64,


To Reproduce

Steps to reproduce the behavior:

  1. Install Intra app

(https://play.google.com/store/apps/details?id=app.intra&hl=en&gl=US)

  1. Go to its settings and select custom dns server and paste this DoH URL:

https://basic.rethinkdns.com/1:AAKAAA==

  1. Go to this reddit comment in SCW: https://reddit.com/comments/ky486s/comment/grgndyq

  2. Open that "canyoublockit" link in a new tab.

  3. Check its tab, you will see it show you an error that say connection refused.

  4. Close SCW.

  5. Open SCW again.

  6. See that tab that couldn't load because dns blocked it.

  7. You will see its URL is replaced with this:

data:text/html;charset=utf-8;base64,

Expected behavior

I think the URL should still be there in the URL bar and won't get replaced by that text i wrote above. (data:text/html;charset=utf-8;base64,)

Screenshots

Sorry i can't now, but let me know if you need it🌹

Device Info

  • Device: i tested this on several devices, Huawei, LG, Sony
  • OS: Android 8.1, Android 9, Android 6.
  • App version: 15.0

(But from my experience, this issue isn't related to specific device, SCW behave same if it get connection refused error for any link that you try to open in a new tab.

But this won't happen if you open that link in same tab and close SCW and reopen it, the url won't get replaced, this just happenes when you open links in a new tab.

Also this isn't completely related to closing and reopening because sometimes i opened alot of links in new tabs and when i checked them, some of them got replaced with that text i wrote above. (data:text/html;charset=utf-8;base64,)

But as i can't find a way for you to reproduce that, i found this reproduce able bug so may be if you fix this, i hope that issue also get fixed.

Thank you very much

Additional context

Nothing. Thank you very much for your great efforts, great app, and thank you very much for everything.

Best wishes.

0xRustlang avatar Dec 04 '21 23:12 0xRustlang

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.

stale[bot] avatar Mar 06 '22 11:03 stale[bot]

Not stale

0xRustlang avatar Nov 25 '22 14:11 0xRustlang

@CookieJarApps may you please consider fixing this? Thank you.

You can also test with any dns based blocker that response to blocked requests with 0.0.0.0

And this issue is still available in latest version.

Thank you so much.

0xRustlang avatar Feb 11 '23 14:02 0xRustlang

@CookieJarApps

Hello May you please reopen this issue?

0xRustlang avatar Mar 23 '24 16:03 0xRustlang