mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 1168544 - fix social orange by avoiding reaching into the content document. r=mixedpuppy
This commit is contained in:
parent
4e038948dd
commit
362f8c4534
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user