When I duplicate a tab, a new tab is created with the same URL and I have to wait for it to download again. Why wouldn’t Firefox just duplicate all the data of the tab into a new tab?

  • dohpaz42@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    7 months ago

    It’s technically possible. Firefox would need to copy the memory used for the current tab into a new set of data structures. This would be less than trivial, as getting it wrong would likely corrupt memory and cause a crash.

    My best guess, being a developer for almost 20 years, is that it’d be safer for the developer to write code that opens a new tab, reloads the URL, and applies minimal state to the new tab.

    Eh, never mind. After more thought, I wonder if it has more to do with the webpage’s caching policy and web standards than anything with Firefox’s capabilities.