• 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
174
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
    • jpdbio Japanese English
      T
      Tran Hung
      13 days ago
      1
      2
      71

    • Captionz - major update to make youtube more useful for language learning.
      R
      river
      23 days ago
      0
      2
      150

    • Welcome to the language exchange channel, find your language partner here
      R
      river
      about 5 hours ago
      0
      1
      41

    • Offering English, Chinese, Swedish | Seeking Japanese
      A
      Arya
      a day ago
      0
      1
      94

    • Google Search Console reports duplicate field url for my site
      R
      river
      9 days ago
      0
      1
      63

    • Urban Dictionary
      R
      river
      12 days ago
      0
      1
      60

    • pronounciation on Anki doesnt work sometimes
      A
      Arya
      17 days ago
      0
      1
      84

    • Captionz (examples on YouTube)
      R
      river
      20 Oct 2024, 17:09
      0
      2
      221
    Buy Me A Coffee Support me!
    Powered by pnlpal open-source | Based on NodeBB