Closed
Bug 1370172
Opened 7 years ago
Closed 7 years ago
Stop using sdk/core/heritage in Console panel
Categories
(DevTools :: Console, enhancement, P1)
DevTools
Console
Tracking
(firefox56 fixed)
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: Honza, Assigned: Honza)
References
Details
(Whiteboard: [console-html])
Attachments
(1 file)
The Console panel should stop using SDK, specifically sdk/core/heritage http://searchfox.org/mozilla-central/source/devtools/client/webconsole/console-output.js#19 We might want to replace: const { extend } = require("sdk/core/heritage"); with: const extend = (prototype, properties) => Object.create(prototype, Object.getOwnPropertyDescriptor(properties)); See also: bug 1368939 comment #2 Honza
Assignee | ||
Updated•7 years ago
|
Flags: qe-verify-
Whiteboard: [console-html]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Iteration: --- → 55.7 - Jun 12
Priority: -- → P1
Updated•7 years ago
|
Iteration: 55.7 - Jun 12 → 56.1 - Jun 26
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8874397 [details] Bug 1370172 - Remove sdk/core/heritage from Console panel; https://reviewboard.mozilla.org/r/145768/#review152962 ::: devtools/client/webconsole/console-output.js:33 (Diff revision 2) > const MAX_STRING_GRIP_LENGTH = 36; > const {ELLIPSIS} = require("devtools/shared/l10n"); > > const validProtocols = /^(http|https|ftp|data|javascript|resource|chrome):/i; > > +function extend(prototype, properties) { I think you can simplify in: const extend = (prototype, properties) => Object.create(prototype, Object.getOwnPropertyDescriptors(properties));
Attachment #8874397 -
Flags: review?(zer0) → review+
Comment 4•7 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] from comment #0) > const extend = (prototype, properties) => Object.create(prototype, > Object.getOwnPropertyDescriptor(properties)); > > See also: > bug 1368939 comment #2 My bad in this comment, I notice now the typo! (I forgot the "s"). :)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Matteo Ferretti [:zer0] [:matteo] from comment #3) > I think you can simplify in: > > const extend = (prototype, properties) => > Object.create(prototype, Object.getOwnPropertyDescriptors(properties)); Done Thanks for the review! Honza
Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/65cf0b301f18 Remove sdk/core/heritage from Console panel; r=zer0
![]() |
||
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/65cf0b301f18
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•