forked from mirrors/gecko-dev
MozReview-Commit-ID: FRRAdxLHRtG --HG-- extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494 extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
15 lines
452 B
JavaScript
15 lines
452 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/. */
|
|
|
|
"use strict";
|
|
|
|
var EXPORTED_SYMBOLS = [
|
|
"getChromeWindow"
|
|
];
|
|
|
|
// Get the chrome (ie, browser) window hosting this content.
|
|
function getChromeWindow(window) {
|
|
return window.document.docShell.rootTreeItem.domWindow
|
|
.wrappedJSObject;
|
|
}
|