mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1233613 - Locate parent document before getting presentation shell for canvas capture. r=mt
--HG-- extra : commitid : KHfLYnTxrYk extra : rebase_source : b2193d6e9902a24ae4d824a72d642c02f521ba98
This commit is contained in:
parent
1c7da5116a
commit
4127d0eaa2
@ -1149,6 +1149,10 @@ HTMLCanvasElement::RegisterFrameCaptureListener(FrameCaptureListener* aListener)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
while (doc->GetParentDocument()) {
|
||||
doc = doc->GetParentDocument();
|
||||
}
|
||||
|
||||
nsIPresShell* shell = doc->GetShell();
|
||||
if (!shell) {
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user