Restore session's "active" property
Fix handling of loadedmetadata event