code refactoring for bug 928237
code refactoring for bug 928237

humphd/thimble.mozilla.org,mozilla/thimble.mozilla.org,humphd/thimble.mozilla.org,mozilla/thimble.mozilla.org,humphd/thimble.mozilla.org,humphd/thimble.mozilla.org,mozilla/thimble.mozilla.org,mozilla/thimble.mozilla.org