Several bug corrections related to the user, the iframe and 3d contexts.