Bug 1168544 - fix social orange by avoiding reaching into the content document. r=mixedpuppy

This commit is contained in:
Mark Hammond 2015-09-09 10:18:59 +10:00
parent 4e038948dd
commit 362f8c4534

View File

@ -84,8 +84,8 @@ function waitForProviderLoad(cb) {
waitForCondition(function() {
let sbrowser = document.getElementById("social-sidebar-browser");
let provider = SocialSidebar.provider;
let postActivation = provider && gBrowser.contentDocument &&
gBrowser.contentDocument.location.href == provider.origin + "/browser/browser/base/content/test/social/social_postActivation.html";
let postActivation = provider && gBrowser.currentURI &&
gBrowser.currentURI.spec == provider.origin + "/browser/browser/base/content/test/social/social_postActivation.html";
return postActivation && sbrowser.docShellIsActive;
}, function() {