Closed Bug 1370172 Opened 8 years ago Closed 8 years ago

Stop using sdk/core/heritage in Console panel

Categories

(DevTools :: Console, enhancement, P1)

enhancement

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Iteration:
56.1 - Jun 26
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
Flags: qe-verify-
Whiteboard: [console-html]
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
Iteration: --- → 55.7 - Jun 12
Priority: -- → P1
Iteration: 55.7 - Jun 12 → 56.1 - Jun 26
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+
(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"). :)
(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
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: