Closed Bug 1088225 Opened 10 years ago Closed 10 years ago

android mozillafilelogger.js needs to remove try/catch around const declarations

Categories

(Testing :: Talos, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: jmaher)

Details

Attachments

(1 file)

I believe we can simplify that file quite a bit
there is a bug somewhere which :efaust is working on which requires these changes.  I have tested them with his builds and default builds on a local device successfully.  I ended up removing a lot of extra stuff, in general we are not doing special powers for talos, so I removed a lot of that code.  Also ipc mode was over engineering.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #8510523 - Flags: review?(wlachance)
Comment on attachment 8510523 [details] [diff] [review]
remove try/catch around const declarations (1.0)

Review of attachment 8510523 [details] [diff] [review]:
-----------------------------------------------------------------

This all makes sense except for the fact that it looks like you're keeping a dead variable "useSpecialPowers" around. r+ with that either addressed or explained.

::: talos/scripts/MozillaFileLogger.js
@@ +2,5 @@
>   * MozFileLogger, a log listener that can write to a local file.
>   */
>  
>  // Detect if we are on older branches that don't have specialpowers enabled talos available
> +var useSpecialPowers = false;

Does this still need to be defined at all?
Attachment #8510523 - Flags: review?(wlachance) → review+
so we use it in the quit.js code;  I didn't want to start modifying everything, but if you would prefer, I could make a pass through and remove ipcmode and usespecialpowers from all code.
(In reply to Joel Maher (:jmaher) from comment #3)
> so we use it in the quit.js code;  I didn't want to start modifying
> everything, but if you would prefer, I could make a pass through and remove
> ipcmode and usespecialpowers from all code.

Up to you. If it's used elsewhere that's a good enough reason to leave it in. Maybe add a comment that it's still needed by quit.js.
I filed bug 1088252 as a good first bug to do the cleanup, I will add a comment and commit.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: