• 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
162
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
    • First post
      1/1
      Last post
    Popular topics
    • Weblio国語辞典
      E
      eu Y
      a day ago
      0
      4
      13

    • Train Chinese
      S
      shshgh
      27 days ago
      0
      2
      112

    • You Asked, I Listened: PDF Support is Finally Here in Dictionariez!
      R
      river
      12 days ago
      0
      1
      136
    Buy Me A Coffee Support me!
    Powered by pnlpal open-source | Based on NodeBB