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
    152
    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.
    • riverR
      river
      last edited by

      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
        Last post
      Popular topics
      • PDF Reader
        D
        dyess002
        1
        3
        105

      • Train Chinese
        S
        shshgh
        0
        2
        49

      • Youglish for Polish
        Victor 0V
        Victor 0
        1
        1
        50

      • CNTRL dictionary
        B
        bimbim
        1
        1
        52

      • Le Robert French dictionary
        B
        bimbim
        1
        1
        50

      • Larousse English > French
        B
        bimbim
        1
        1
        52

      • Larousse French > English
        B
        bimbim
        1
        1
        54

      • Lookup history not working
        Oleg LapchynskyiO
        Oleg Lapchynskyi
        1
        2
        189
      Buy Me A Coffee Support me!
      Powered by pnlpal open-source | Based on NodeBB