Skip to content

Commit

Permalink
Don't use contentDocumentAsCPOW in workaround for restored tabs
Browse files Browse the repository at this point in the history
(looks like not needed… and doesn't work anyway)
(#208)
  • Loading branch information
Infocatcher committed Mar 3, 2016
1 parent afbe4a8 commit 3eb2a7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1832,10 +1832,11 @@ var privateTab = {
!browser
|| !browser.webProgress
|| browser.webProgress.isLoadingDocument
// Something may went wrong with restored tabs,
// Something may went wrong with restored tabs (but works fine in multi-process mode),
// see https://github.com/Infocatcher/Private_Tab/issues/146#issuecomment-137159478
|| browser.currentURI.spec == "about:blank"
&& (browser.contentDocument || browser.contentDocumentAsCPOW || {}).readyState == "uninitialized"
&& browser.contentDocument
&& browser.contentDocument.readyState == "uninitialized"
) {
_log("Selected tab not yet loaded, wait");
window.setTimeout(function() {
Expand Down

0 comments on commit 3eb2a7d

Please sign in to comment.