• Sharing
  • Captionz Trove
  • Captionz
  • PDF Reader
  • Register
  • Login
PNL
  • Sharing
  • Captionz Trove
  • Captionz
  • PDF Reader
  • Register
  • Login

Just found a weird bug in my program. it turns out to be silly
Add to Dictionariez

Sharing
learning programming
1
1
172
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    river
    last edited by 2 Dec 2020, 02:12

    So I thought I have found a bug of Firefox, which treats sessionStorage differently than Google. I found on Firefox that when the page was directed to another url, the sessionStorage was freed immediately. At first I thought it was a bug of Firefox. To get around of it, I use localStorage instead, and send the author a pull request. But the original author reminded me that he hadn't found such problem on Firefox. Than it occurred to me that it might be my problem. So I looked into my code again, did find the problem. It turns out I am using sessionStorage inside an iframe, when change the url of the top window, then on Firefox the storage is freed immediately as the session is lost.

    An atypical programmer making apps for educational purpose.

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Popular topics
    • Ordböcker: The all-in-one dictionary app for learning Swedish.
      R
      river
      22 days ago
      0
      2
      123

    • 天才英単語
      E
      eu Y
      31 May 2025, 19:18
      1
      3
      162

    • Glosbe SV-PT
      S
      Svensy
      23 days ago
      1
      2
      94

    • pronounciation on Anki doesnt work sometimes
      M
      Madline
      a day ago
      0
      1
      16

    • Captionz (examples on YouTube)
      R
      river
      20 Oct 2024, 17:09
      0
      2
      150

    • Chatgpt Eng-TR
      M
      Muhammet Korkmaz
      4 days ago
      1
      1
      32

    • Vocabulary.com
      R
      river
      5 days ago
      0
      1
      35

    • Captionz - major update to make youtube more useful for language learning.
      R
      river
      8 days ago
      0
      1
      66
    Buy Me A Coffee Support me!
    Powered by pnlpal open-source | Based on NodeBB