Bug 1705757 - Move FrameLoader.print to BrowsingContext.print. r=nika,remote-protocol-reviewers,marionette-reviewers,extension-reviewers,zombie

This makes it trivial to choose the right BrowserParent to print a
browsing context, by removing the OuterWindowID / FrameLoader
indirections.

Differential Revision: https://phabricator.services.mozilla.com/D112412
This commit is contained in:
Emilio Cobos Álvarez
2021-04-17 18:41:11 +00:00
parent 3853ead982
commit 0e55bca38f
17 changed files with 152 additions and 173 deletions

View File

@@ -1731,14 +1731,6 @@
};
}
print(aOuterWindowID, aPrintSettings) {
if (!this.frameLoader) {
throw Components.Exception("No frame loader.", Cr.NS_ERROR_FAILURE);
}
return this.frameLoader.print(aOuterWindowID, aPrintSettings);
}
async drawSnapshot(x, y, w, h, scale, backgroundColor) {
let rect = new DOMRect(x, y, w, h);
try {