Closed Bug 1169146 Opened 10 years ago Closed 10 years ago

Pressing the 'Clear' button while recording makes it impossible to start another recording without reopening the toolbox

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

defect
Not set
normal

Tracking

(firefox41 verified)

VERIFIED FIXED
Firefox 41
Tracking Status
firefox41 --- verified

People

(Reporter: sjakthol, Assigned: jsantell)

References

Details

(Whiteboard: [testday-20150821])

Attachments

(1 file, 1 obsolete file)

STR: 1. Open performance tool. 2. Start recording. 3. Press 'Clear' button. The active recording stops. 4. Press the 'Start Recording Performance' button again. Expected: A new recording starts. Actual: The button is disabled but a recording is never started. The toolbox needs to be reopened before another recording can start.
Assignee: nobody → jsantell
Status: NEW → ASSIGNED
Attachment #8617695 - Flags: review?(vporof)
Comment on attachment 8617695 [details] [diff] [review] 1169146-recordingbutton-clear.patch Review of attachment 8617695 [details] [diff] [review]: ----------------------------------------------------------------- oops ::: browser/devtools/performance/performance-view.js @@ +182,5 @@ > + * on `shouldLock`. > + * > + * @param {boolean} shouldLock > + */ > + _lockRecordButtons: function (shouldLock) { "lock" vs. "shouldLock" is confusing. _setRecordingButtonsLockedState is a mouthful but much clearer. @@ +201,2 @@ > */ > + _activateRecordButtons: function (shouldActivate) { Ditto. Activate and then you ask me "shouldActivate". wut. ::: browser/devtools/performance/test/head.js @@ +345,5 @@ > > click(win, button); > yield clicked; > > + yield willStart; Maybe make these checks before and after just to be sure.
Attachment #8617695 - Flags: review?(vporof) → review+
Fixed the parameter names. Can't add a after click button-state check, there's no guarantee there what state it'll be between click and the will start/stop events (events should resolve sync, but the click yield will be async and will almost always be the same state as after the will start/stop event, but can't guarantee that)
Attachment #8617695 - Attachment is obsolete: true
Attachment #8617716 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 41
QA Whiteboard: [good first verify]
I found this issue in Nightly 41.0a1 (2015-05-27) (Build ID: 20150527030204) on Linux x64 This Bug is now Verified as fixed on Latest Firefox Beta 41.0b3 Build ID : 20150820142145 User Agent : Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
QA Whiteboard: [good first verify] → [good first verify] [testday-20150821]
Whiteboard: [testday-20150821]
I have reproduced this bug in Nightly 41.0a1 (2015-05-27)(Build ID: 20150527030204) with Comment 0's instruction on Windows 10 64bit. Bug is fixed now on latest Beta 41.0b3 (Build ID:20150820142145) Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:41.0) Gecko/20100101 Firefox/41.0 [testday-20150821]
As it is verified on Linux and Windows (Comment 7 and Comment 8), Marking it as verified!
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: