Bug 1059682: proof of concept fix for gallery