Firefox (effectively) already does that by default.
https://support.mozilla.org/en-US/kb/introducing-total-cooki...