Closed Bug 695168 Opened 14 years ago Closed 10 years ago

ErrorHandler tries to use _log before initialization

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rnewman, Unassigned)

Details

(Keywords: regression)

JavaScript error: resource://services-sync/policies.js, line 620: this._log is undefined Presumably initLogs hasn't yet been called. (This was clicking Sync Now immediately on browser start.)
I just saw this on my local Nightly build as well. Although, my line number was different: JavaScript strict warning: resource://services-sync/policies.js, line 605: reference to undefined property this._log JavaScript error: resource://services-sync/policies.js, line 605: this._log is undefined I don't have a this._log on line 620, so I'm guessing :rnewman has something on his patch queue touching policies.js? I triggered by clicking Sync Now from the toolbar, possibly just before/after a scheduled Sync.
Keywords: regression
(In reply to Gregory Szorc [:gps] from comment #1) > I don't have a this._log on line 620, so I'm guessing :rnewman has something > on his patch queue touching policies.js? I do.
Mark, did you fix this?
Flags: needinfo?(markh)
I don't recall fixing this, but certainly would have if I saw it. A quick look at the code implies this currently can't happen (the log is setup as part of the ctor) so I think we can just close this and deal with it if we ever see it again.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(markh)
Resolution: --- → WORKSFORME
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.