Closed
Bug 898000
Opened 11 years ago
Closed 11 years ago
Add getIconAsDataURL in webapps actor
Categories
(DevTools Graveyard :: WebIDE, defect)
DevTools Graveyard
WebIDE
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: ochameau, Assigned: ochameau)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
9.74 KB,
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
In order to help fetching various device contents like app icon, manifest,... we would need a way to fetch these content from the remote to the client as they are accessible via URL that only works on the remote, like app://.../manifest.webapp.
Assignee | ||
Comment 1•11 years ago
|
||
I haven't added the actor to the browser actor list in order to only load it when we will start using it. That's so nice to do such feature without using any chrome/xpcom \o/
Assignee | ||
Updated•11 years ago
|
Attachment #781026 -
Flags: review?(paul)
Comment 2•11 years ago
|
||
What about registering the actor in shell.js?
Comment 3•11 years ago
|
||
When I resolve: "app://settings.gaiamobile.org/style/icons/60/Settings.png" the mimetype is application/xml
Comment 4•11 years ago
|
||
How do we handle 404?
Comment 5•11 years ago
|
||
I still don't see this as a clean way to do things. It brings back memories of RPC. In the current design, actors are entities with meaningful lifetimes and a related client that communicates with them through a collection of requests that operate on their state. For instance, the tab actor is responsible for intermediating with the remote tab and has methods that the tab client can use to manipulate the state of the tab, such as reload, navigateTo, etc. This new actor is only capable of making stateless requests on behalf of various clients that could presumably grow a similar capability, if not return the data as part of other responses. For example, a hypothetical webapp actor could respond to an "icon" request, or even return the icon in the response of an "info" or "attach" request.
Comment 7•11 years ago
|
||
Comment on attachment 781026 [details] [diff] [review] Add a url resolver actor I talked to Panos. We need to move this at the app actor level. We should implement a `getIconAsDataURL()` method. Sorry :)
Attachment #781026 -
Flags: review?(paul) → review-
Assignee | ||
Updated•11 years ago
|
Summary: Add a url resolver actor → Add getIconAsDataURL in webapps actor
Assignee | ||
Comment 8•11 years ago
|
||
Attachment #781026 -
Attachment is obsolete: true
Assignee | ||
Comment 9•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=77b2a6024293
Assignee | ||
Updated•11 years ago
|
Attachment #782664 -
Flags: review?(paul)
Comment 10•11 years ago
|
||
Comment on attachment 782664 [details] [diff] [review] Add getIconAsDataURL in webapps actor Thanks Alex! r=me if you reset the pref once the test is finished.
Attachment #782664 -
Flags: review?(paul) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #782664 -
Attachment is obsolete: true
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 783344 [details] [diff] [review] Reset the pref to the original value during tests Carrying r+ after having addressed review comment.
Attachment #783344 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/213244df4e6e
Assignee: nobody → poirot.alex
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 14•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/213244df4e6e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•4 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•