Lines Matching refs:frameLoader

134   // Maps a frameLoader to the state of a permitUnload request. If the frameLoader
136 // the frameLoader, or a previous permitUnload check has already completed.
144 * Returns true if the frameLoader associated with a tab is still determining
149 * @param {FrameLoader} frameLoader the frameLoader associated with a <xul:browser>
153 inPermitUnload(frameLoader) {
154 return this.inProgressPermitUnload.has(frameLoader);
163 * the same frameLoader.
165 * @param {FrameLoader} frameLoader the frameLoader that should be checked for
177 permitUnload(frameLoader, flags) {
179 if (this.inPermitUnload(frameLoader)) {
188 let mm = frameLoader.messageManager;
190 let roots = this.getProcessContiguousRoots(frameLoader.browsingContext);
207 this.inProgressPermitUnload.set(frameLoader, state);
218 this._onTimeout(frameLoader);
229 this.inProgressPermitUnload.delete(frameLoader);
277 * Returns true if any of the subframes associated with the frameLoader
279 * no point in running permitUnload on the frameLoader, as we know that
282 * @param {FrameLoader} frameLoader the frameLoader that should be checked for
286 * set in any of the frameLoader's frames.
288 hasBeforeUnload(frameLoader) {
289 if (frameLoader.remoteTab) {
290 return frameLoader.remoteTab.hasBeforeUnload;
312 let frameLoader = windowGlobal.rootFrameLoader;
313 let state = this.inProgressPermitUnload.get(frameLoader);
354 * @param {Object} state the state for the frameLoader that we're currently checking
367 * @param {FrameLoader} frameLoader the frameLoader that took too long to detect
370 _onTimeout(frameLoader) {
371 let state = this.inProgressPermitUnload.get(frameLoader);
387 let frameLoader = windowGlobal.rootFrameLoader;
388 let state = this.inProgressPermitUnload.get(frameLoader);