Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7655 from crh0716/830905
Browse files Browse the repository at this point in the history
bug 830905 - Set the name to the iframe object r=alive kuo, a=tef+
  • Loading branch information
crh0716 committed Jan 17, 2013
2 parents afe3970 + 6c7e58c commit 9cbe94e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/system/js/window_manager.js
Expand Up @@ -1125,7 +1125,11 @@ var WindowManager = (function() {
var iframe = frame.firstChild;
frame.id = 'appframe' + nextAppId++;
iframe.dataset.frameType = 'window';
frame.name = 'main';

// Give a name to the frame for differentiating between main frame and
// inline frame. With the name we can get frames of the same app using the
// window.open method.
iframe.name = 'main';

// If this frame corresponds to the homescreen, set mozapptype=homescreen
// so we're less likely to kill this frame's process when we're running low
Expand Down Expand Up @@ -1175,6 +1179,10 @@ var WindowManager = (function() {
var iframe = frame.firstChild;
frame.classList.add('inlineActivity');
iframe.dataset.frameType = 'inline-activity';

// Give a name to the frame for differentiating between main frame and
// inline frame. With the name we can get frames of the same app using the
// window.open method.
iframe.name = 'inline';

// Save the reference
Expand Down

0 comments on commit 9cbe94e

Please sign in to comment.