qzb / dustman

🗑 Firefox extension for closing tabs you no longer need

Home Page:https://addons.mozilla.org/addon/dustman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't close tabs with user-supplied form content

Miserlou opened this issue · comments

Another feature that would be useful (just got bitten by this) -

please don't automatically closed tabs that have unsubmitted form data. I filled out a long comment but didn't submit it, then stepped away from my computer, and by the time I came my text was gone. This cost me a fair amount of work.

Please make the default behavior non-destructive for user data!

Thanks!

It could be tricky, but I'll think about it.

Shouldn't be too difficult.. just iterate over input/textarea elements before closing and don't close if their values aren't empty.

I don't really want to implement this. I don't think it will be easy to do this in a consistent way, and will significantly increase the extension's size and required permission level.