Bug 960280 - Generate canvases that are not displayed with the appropriate tag to reduce memory usage r=arcturus

(cherry picked from commit 5df7622aa7456415503dc374a9b80a5fce40dc58)