Closed
Bug 933083
Opened 12 years ago
Closed 12 years ago
Refactor connections into app-actor-front
Categories
(DevTools Graveyard :: WebIDE, defect)
DevTools Graveyard
WebIDE
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 28
People
(Reporter: jryans, Assigned: jryans)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
|
10.54 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
DRY up the code by moving client.request calls into app-actor-front.
| Assignee | ||
Comment 1•12 years ago
|
||
This centralizes some repeated code into app-actor-front. Also, calls that rely on the device are guarded with connection checks.
Attachment #825041 -
Flags: review?(poirot.alex)
Comment 2•12 years ago
|
||
Comment on attachment 825041 [details] [diff] [review]
Refactor app requests into app-actor-front
Review of attachment 825041 [details] [diff] [review]:
-----------------------------------------------------------------
r+ but if, and only if you also add:
get connected() { return !!this.listTabsResponse; },
to projects.js ;)
::: browser/devtools/app-manager/content/projects.js
@@ +302,4 @@
>
> debug: function(button, location) {
> + if (!this.connected) {
> + return;
You should also return a rejected promise here.
Attachment #825041 -
Flags: review?(poirot.alex) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Alexandre Poirot (:ochameau) from comment #2)
> r+ but if, and only if you also add:
> get connected() { return !!this.listTabsResponse; },
> to projects.js ;)
Sorry for the confusion, that was in the previous patch from bug 933025, but that hasn't landed, so I understand your concern. :)
Depends on: 933025
| Assignee | ||
Comment 4•12 years ago
|
||
Carrying over r+ from attachment 825041 [details] [diff] [review].
(In reply to Alexandre Poirot (:ochameau) from comment #2)
> ::: browser/devtools/app-manager/content/projects.js
> @@ +302,4 @@
> >
> > debug: function(button, location) {
> > + if (!this.connected) {
> > + return;
>
> You should also return a rejected promise here.
Added.
Try: https://tbpl.mozilla.org/?tree=Try&rev=6e067dc84e10
Attachment #825041 -
Attachment is obsolete: true
Attachment #826126 -
Flags: review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 5•12 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Updated•12 years ago
|
Whiteboard: [qa-]
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•