mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
21 lines
614 B
JavaScript
21 lines
614 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// This file is loaded into the browser window scope.
|
|
/* eslint-env mozilla/browser-window */
|
|
|
|
/**
|
|
* Global browser interface with the WebRender backend.
|
|
*/
|
|
var gWebRender = {
|
|
/**
|
|
* Trigger a WebRender capture of the current state into a local folder.
|
|
*/
|
|
capture() {
|
|
window.QueryInterface(Ci.nsIInterfaceRequestor)
|
|
.getInterface(Ci.nsIDOMWindowUtils)
|
|
.wrCapture();
|
|
}
|
|
};
|