PNL
    • Tags
    • Popular
    • Sharing
    • Captionz Trove
    • Users
    • Captionz
    • PDF Reader
    • PNL Pro
    • Register
    • Login

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

    Sharing
    learning programming
    1
    1
    221
    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
      • PNL Reader 2.0: read quietly or read aloud, it's your choice.
        riverR
        river
        0
        9
        309

      • Addition of the "Look up Turkish words" option
        aeozelA
        aeozel
        1
        8
        130

      • Bug - input panel disappearing
        Oleg LapchynskyiO
        Oleg Lapchynskyi
        1
        8
        128

      • Captionz update: YouTube shortcuts support for better video experience
        riverR
        river
        1
        2
        85

      • Poe Ai
        Trung TrầnT
        Trung Trần
        0
        2
        59

      • spanishdict
        E
        emadstar00000
        1
        2
        94

      • Book Your Panchtarni to Baltal Helicopter Booking with Priority Support
        thetravelingT
        thetraveling
        0
        1
        4

      • PNL Reader: Simple, Elegant, and Transparent
        riverR
        river
        0
        6
        920
      Buy Me A Coffee Support me!
      Powered by pnlpal open-source | Based on NodeBB