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

Audit for theme-color <meta> #87

Merged
merged 2 commits into from
Mar 28, 2016
Merged

Conversation

paulirish
Copy link
Member

started with @gauntface's #79 PR as a base, and reworked with the DOM approach.

matt, would love your review on this!

@@ -14,14 +14,15 @@
"number": true,
"string": true
}],
"no-unused-expressions": [2, {
"no-unused-expressions": [0, {

Choose a reason for hiding this comment

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

I'd generally say this is a bad sign. What was the use case for this and could it be solved with an inline comment rather than a blanket rule change

Copy link
Contributor

Choose a reason for hiding this comment

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

Yah we should probs set a temp bypass if needed. Seems too broad to change generally. I think the _ in arrow functions is normally unused, but that should be a special case we accept I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah works for me. we had discussed it, but happy to keep this as is, really.

@@ -0,0 +1,35 @@
/**
* Copyright 2016 Google Inc. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

@license headers on all of these please :0

@samccone
Copy link
Contributor

Good work here @paulirish :)

I am excited to get this landed, since it opens all kinds of doors for more DOM work 💃

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

1 similar comment
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@paulirish
Copy link
Member Author

Please take a look?

I'm halfway through writing a test for driver.querySelector's return values. It can land in here or the next PR.

@paulirish
Copy link
Member Author

Test landed. 🍆

@@ -0,0 +1,40 @@
/**
* Copyright 2016 Google Inc. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

@licence

@paulirish
Copy link
Member Author

🔭 👀

@@ -20,6 +20,10 @@ const Gather = require('./gather');

class Viewport extends Gather {

/**
@param {!{driver: !object}} options
Copy link
Contributor

Choose a reason for hiding this comment

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

super nit... we need

* at the start of these lines

@samccone
Copy link
Contributor

(let's be sure to squash this into 1 commit before merge ✨ )

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

@paulirish
Copy link
Member Author

so squash.

@samccone samccone added the +1 label Mar 28, 2016
@samccone
Copy link
Contributor

👍

});
return driver.querySelector('head link[rel="manifest"]')
.then(node => node.getAttribute('href'))
.then(manifestURL => Manifest._loadFromURL(options, manifestURL))
Copy link
Member

Choose a reason for hiding this comment

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

we should document (or file an issue if we want to change it) that since the page isn't fetching the manifest, this might not be the same manifest the page would get (e.g. if the user needs to be logged in)

Copy link
Member

Choose a reason for hiding this comment

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

although that might just be #83

@brendankenny
Copy link
Member

LGTM, only style/annotation issues remaining

@paulirish paulirish merged commit e4dfe6a into GoogleChrome:master Mar 28, 2016
@paulirish
Copy link
Member Author

@gauntface I tried for like half an hour to keep your PR as a solo commit and squashing my stuff on top, but it was a lot of git-fighting so I gave up. :/

Definitely want your input on this stuff going forward.

@paulirish paulirish modified the milestone: Lighthouse MVP Mar 31, 2016
@paulirish paulirish deleted the themecolor branch April 24, 2016 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants