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

Commit

Permalink
Merge pull request mozilla-b2g#23304 from luke-chang/1056493_v1.4_con…
Browse files Browse the repository at this point in the history
…tacts_to_homescreen_delay

Bug 1056493 - [Dolphin][Hamachi][v1.4]No icons show for several seconds when back to homescreen from contacts, r=alive
  • Loading branch information
Luke Chang authored and timdream committed Sep 3, 2014
1 parent 45ecc4c commit 9e2a7c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/system/js/browser_frame.js
Expand Up @@ -52,8 +52,10 @@
browser.setAttribute('mozapp', config.manifestURL);

// Only app with manifest could get system message.
browser.setAttribute('expecting-system-message',
'expecting-system-message');
if (config.isSystemMessage) {
browser.setAttribute('expecting-system-message',
'expecting-system-message');
}
}

if (config.parentApp) {
Expand Down
11 changes: 10 additions & 1 deletion apps/system/test/unit/browser_frame_test.js
Expand Up @@ -49,6 +49,7 @@ suite('browser class > ', function() {

test('expect system message', function() {
var b = new BrowserFrame({
isSystemMessage: true,
url: window.location.protocol + '//' + 'other.gaiamobile.org',
manifestURL: window.location.protocol +
'//' + 'other.gaiamobile.org/manifest.webapp'
Expand All @@ -57,9 +58,17 @@ suite('browser class > ', function() {
'expecting-system-message');

var b2 = new BrowserFrame({
url: window.location.protocol + '//' + 'other.gaiamobile.org'
url: window.location.protocol + '//' + 'other.gaiamobile.org',
manifestURL: window.location.protocol +
'//' + 'other.gaiamobile.org/manifest.webapp'
});
assert.isNull(b2.element.getAttribute('expecting-system-message'));

var b3 = new BrowserFrame({
isSystemMessage: true,
url: window.location.protocol + '//' + 'other.gaiamobile.org'
});
assert.isNull(b3.element.getAttribute('expecting-system-message'));
});
});

0 comments on commit 9e2a7c2

Please sign in to comment.