Bug 1057518 - Ensure callingDoc and doc's principal are the same in XMLDocument::Load(). r=sicking