author | Brian Nicholson <bnicholson@mozilla.com> |
Thu, 18 Oct 2012 00:03:58 -0700 | |
changeset 110640 | 1a263da752602cb823b33deeaa1f6e00a524b995 |
parent 110639 | 77ac649ce11bad3a4629a7c4208e7a2981937a96 |
child 110641 | feeaf869c460e617aea11e2448ba57986d73a683 |
push id | 23704 |
push user | emorley@mozilla.com |
push date | Thu, 18 Oct 2012 17:12:58 +0000 |
treeherder | mozilla-central@3779eb3f036f [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | kats |
bugs | 802881 |
milestone | 19.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -2795,22 +2795,19 @@ Tab.prototype = { if (target != this.browser.contentDocument) return; // Sample the background color of the page and pass it along. (This is used to draw the // checkerboard.) Right now we don't detect changes in the background color after this // event fires; it's not clear that doing so is worth the effort. var backgroundColor = null; try { - let browser = BrowserApp.selectedBrowser; - if (browser) { - let { contentDocument, contentWindow } = browser; - let computedStyle = contentWindow.getComputedStyle(contentDocument.body); - backgroundColor = computedStyle.backgroundColor; - } + let { contentDocument, contentWindow } = this.browser; + let computedStyle = contentWindow.getComputedStyle(contentDocument.body); + backgroundColor = computedStyle.backgroundColor; } catch (e) { // Ignore. Catching and ignoring exceptions here ensures that Talos succeeds. } sendMessageToJava({ gecko: { type: "DOMContentLoaded", tabID: this.id,