Bug-1039988 Fixing Javascript error while pressing share button in full screen mode
Bug 1065877: prevent OOMs when editing, picking and sharing large images

address review comments