Closed
Bug 1136784
Opened 10 years ago
Closed 10 years ago
Add screenshot to logshake produced data
Categories
(Firefox OS Graveyard :: Developer Tools, defect)
Tracking
(firefox39 fixed)
RESOLVED
FIXED
2.2 S8 (20mar)
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: daleharvey, Assigned: gerard-majax)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file, 6 obsolete files)
13.04 KB,
patch
|
gerard-majax
:
review+
|
Details | Diff | Splinter Review |
The screenshot can be very valuable when debugging user facing bugs, I think it would be a good addition to the logs
Assignee | ||
Comment 1•10 years ago
|
||
I'm not sure, we already have an easy way to take screenshots
Reporter | ||
Comment 2•10 years ago
|
||
> I'm not sure, we already have an easy way to take screenshots
We have a seperate way to add screenshots but the screenshot data is likely very valuable when the user is indicating that there is a bug that they would like to capture information about, why wouldnt we also automatically capture it?
If we dont and the user does want to capture a screenshot along with the logs it complicates the flow hugely.
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Dale Harvey (:daleharvey) from comment #2)
> > I'm not sure, we already have an easy way to take screenshots
>
> We have a seperate way to add screenshots but the screenshot data is likely
> very valuable when the user is indicating that there is a bug that they
> would like to capture information about, why wouldnt we also automatically
> capture it?
>
> If we dont and the user does want to capture a screenshot along with the
> logs it complicates the flow hugely.
Ok, but then we will have to add it to the gecko logshake component
Assignee | ||
Comment 4•10 years ago
|
||
You'll have to hack around https://dxr.mozilla.org/mozilla-central/source/b2g/components/LogShake.jsm#212
Flags: needinfo?(dale)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8574410 -
Flags: feedback?(poirot.alex)
Assignee | ||
Comment 7•10 years ago
|
||
Assignee: nobody → lissyx+mozillians
Attachment #8574410 -
Attachment is obsolete: true
Attachment #8574410 -
Flags: feedback?(poirot.alex)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8574411 [details] [diff] [review]
screenshot-logshake.patch
I had to move screenshotting from shell.js and put it into SystemAppProxy. But we still need a document and a window. Here is a patch that does the job, but I'm not sure if there is not a cleaner way to do it.
Attachment #8574411 -
Flags: feedback?(poirot.alex)
Comment 9•10 years ago
|
||
Comment on attachment 8574411 [details] [diff] [review]
screenshot-logshake.patch
Review of attachment 8574411 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/chrome/content/shell.js
@@ +602,4 @@
>
> this.reportCrash(true);
>
> + SystemAppProxy.registerFrame(shell.contentBrowser, document, window);
No need to pass document/window, we can query all that from contentBrowser (that is an iframe).
::: b2g/components/SystemAppProxy.jsm
@@ +139,5 @@
> }
> return list;
> + },
> +
> + getScreenshot: function systemApp_getScreenshot() {
That has nothing to do in SystemAppProxy. This module is just an helper to track the system app frame. Better make it expose SystemAppProxy._frame publicly, than doing this!
So that from somewhere else (LogShake.jsm?), you would get the system app frame like this:
let systemAppFrame = SystemAppProxy.frame;
let window = systemAppFrame.contentWindow;
let document = window.document;
Attachment #8574411 -
Flags: feedback?(poirot.alex) → feedback-
Assignee | ||
Comment 10•10 years ago
|
||
Thanks, that was exactly what I feared :)
Assignee | ||
Comment 11•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8574411 -
Attachment is obsolete: true
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #11)
> Created attachment 8574653 [details] [diff] [review]
> Add screenshot to LogShake produced data r=...
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d7bbcd85cb1f
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8574653 [details] [diff] [review]
Add screenshot to LogShake produced data r=...
That works for me like this.
Attachment #8574653 -
Flags: feedback?(poirot.alex)
Attachment #8574653 -
Flags: feedback?(dale)
Updated•10 years ago
|
Attachment #8574653 -
Flags: feedback?(poirot.alex) → feedback+
Assignee | ||
Comment 14•10 years ago
|
||
Assignee | ||
Comment 15•10 years ago
|
||
With mochitests as suggested on IRC: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fbf9d7e8dde3
Assignee | ||
Comment 16•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #15)
> With mochitests as suggested on IRC:
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=fbf9d7e8dde3
typo
Assignee | ||
Updated•10 years ago
|
Attachment #8574653 -
Attachment is obsolete: true
Attachment #8574653 -
Flags: feedback?(dale)
Assignee | ||
Updated•10 years ago
|
Attachment #8574762 -
Attachment is obsolete: true
Assignee | ||
Comment 17•10 years ago
|
||
Assignee | ||
Comment 18•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8574861 -
Flags: review?(poirot.alex)
Attachment #8574861 -
Flags: review?(anygregor)
Assignee | ||
Updated•10 years ago
|
Attachment #8574861 -
Attachment is obsolete: true
Attachment #8574861 -
Flags: review?(poirot.alex)
Attachment #8574861 -
Flags: review?(anygregor)
Assignee | ||
Comment 19•10 years ago
|
||
Assignee | ||
Comment 20•10 years ago
|
||
Assignee | ||
Comment 21•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #20)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=1dda57bb3233
test_screenshot.html and test_systemapp.html are both ok.
Assignee | ||
Updated•10 years ago
|
Attachment #8575115 -
Flags: review?(poirot.alex)
Attachment #8575115 -
Flags: review?(anygregor)
Comment 22•10 years ago
|
||
Comment on attachment 8575115 [details] [diff] [review]
Add screenshot to LogShake produced data r=...
Review of attachment 8575115 [details] [diff] [review]:
-----------------------------------------------------------------
r+ for SystemAppProxy.jsm and systemapp_helper.js
I'm not reviewer for other files.
Attachment #8575115 -
Flags: review?(poirot.alex) → review+
Comment 23•10 years ago
|
||
Comment on attachment 8575115 [details] [diff] [review]
Add screenshot to LogShake produced data r=...
Review of attachment 8575115 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/components/test/mochitest/test_screenshot.html
@@ +1,4 @@
> +<!DOCTYPE HTML>
> +<html>
> +<!--
> +https://bugzilla.mozilla.org/show_bug.cgi?id=963239
Please update.
Attachment #8575115 -
Flags: review?(anygregor) → review+
Assignee | ||
Comment 24•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8575115 -
Attachment is obsolete: true
Assignee | ||
Comment 25•10 years ago
|
||
Comment on attachment 8575849 [details] [diff] [review]
Add screenshot to LogShake produced data r=...
Carrying r+, addressed comments.
Attachment #8575849 -
Flags: review+
Comment 27•10 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S8 (20mar)
Updated•10 years ago
|
Whiteboard: [systemsfe]
You need to log in
before you can comment on or make changes to this bug.
Description
•