Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: update chrome-devtools-frontend to latest #6101

Merged
merged 1 commit into from
Sep 24, 2018
Merged

Conversation

brendankenny
Copy link
Member

@brendankenny brendankenny commented Sep 24, 2018

Update is easy now :) Fulfills the dream of #1535, though the problems it would have fixed back then don't exist anymore.

Hopefully this update will make it easier for whoever takes that last webinspector step, either completely isolating the WebInspector global pollution (cc @castilloandres) or reimplementing the font functionality in Lighthouse. With the updates to the fontend, the first should be quite a bit easier and the second should at least be at least a little easier to follow since the implementation will match current DevTools.

* The single prototype augmentation needed from 'chrome-devtools-frontend/front_end/platform/utilities.js'.
* @return {Array<number>}
*/
String.prototype.computeLineEndings = function() { // eslint-disable-line no-extend-native
Copy link
Member Author

@brendankenny brendankenny Sep 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seemed simpler (and more up-front about what we're doing) to explicitly provide the single augmentation we needed rather than all of utilities.js. Since we're up to date now, maybe we could upstream putting this on TextUtils or something, instead :)

(technically computeLineEndings calls String.prototype.findAll in utilities.js, but this reimplements the function so it could be just the one)

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 I'm a little scared of trying to rip it out of font-size, but we are soooooooo close

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome. nice stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants