Closed Bug 579340 Opened 14 years ago Closed 14 years ago

Miscellaneous code cleanup

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mfinkle, Assigned: mfinkle)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
This patch fixes two things:
* BrowserView::updateScrolledArea does not check to make sure "tab" is valid. It can be null when about:blank pre-pages load faster than we put the new tab in the Browser.tabs collection. We want to ignore those anyway and fix them in the future. BrowserView is destined for the scrape heap anyway.
* importDialog reuses the "parent" variable for two different things: the parent DOM node and the parent window. The patch uses aParent for the passed in param and parentNode for the DOM node.

See
http://hg.mozilla.org/mobile-browser/diff/c21d7d3748a8/chrome/content/browser.js for the original 'parent' DOM node

http://hg.mozilla.org/mobile-browser/rev/b8146a648664 for the addition of the 'parent' param
Attachment #457855 - Attachment is patch: true
Attachment #457855 - Attachment mime type: application/octet-stream → text/plain
Attachment #457855 - Flags: review?(21)
Comment on attachment 457855 [details] [diff] [review]
patch

>diff --git a/chrome/content/browser.js b/chrome/content/browser.js
>--- a/chrome/content/browser.js
>+++ b/chrome/content/browser.js

>   // we need to insert before select-container if we want it to show correctly
>   let selectContainer = document.getElementById("select-container");
>-  let parent = selectContainer.parentNode;
>+  let parentNode = selectContainer.parentNode;
> 

I'm happy this "parent" var was being insult by xpcshell for a while (bug 539461) and your patch correct what I've not seen when cleaning it.
Attachment #457855 - Flags: review?(21) → review+
pushed:
http://hg.mozilla.org/mobile-browser/rev/93baa2cdfc1f
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
bugspam
Assignee: nobody → mark.finkle
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: