Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

#149 Be able to evaluate page with iframes #150

Merged
merged 6 commits into from
Jul 8, 2015

Conversation

davidhsv
Copy link
Contributor

@davidhsv davidhsv commented May 2, 2015

Disabling webSecurity in phantomJs -> so we can get the document root from frames.

…Security in phantomJs -> so we can get the document root from frames.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@davidhsv
Copy link
Contributor Author

davidhsv commented May 2, 2015

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

container.appendChild(ifrm);
ifrm.contentDocument.body.appendChild(buildTestDom());
var matched = [];
axs.AuditRule.collectMatchingElements(container, matcher, matched);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this method mutating matched in memory? That doesn't seem ideal. Unrelated to this PR, but since we're in the neighborhood I thought I'd point it out. Not a nlocker for merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was justing copying the same behavior in others tests (in this same file). I don't like methods changing parameter's content too (bad smell).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, that's fine, thought I'd point it out as something we can improve in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is intended behaviour. Since this is a recursive method, we need an accumulator to keep track of matched elements - otherwise we'd be constantly having to combine partial results.

@ckundo
Copy link
Collaborator

ckundo commented Jun 12, 2015

Check out my comment on the opt_shadowRoot. Aside from that question, LGTM. edit: see comment below

@ckundo
Copy link
Collaborator

ckundo commented Jun 12, 2015

Actually, forgot to also mention that I don't think we need to rebuild axs_testing.js for this to work. That change should be reverted I think.

@davidhsv
Copy link
Contributor Author

The axs_testing.js was generated by the grunt build. Should I revert it?

Conflicts:
	dist/js/axs_testing.js - reverted to master branch file
@davidhsv
Copy link
Contributor Author

Reverted file ax_testing.js to match remote master.

@@ -1545,7 +1545,7 @@ axs.AuditRule.collectMatchingElements = function(a, b, c, d) {
for (e = f.getDistributedNodes(), f = 0;f < e.length;f++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@davidhsv this file needs to be checked out entirely.

@ckundo
Copy link
Collaborator

ckundo commented Jun 16, 2015

@davidhsv looks like there's a merge conflict. Once that's resolved and you remove axs_testing.js changes, LGTM.

@alice
Copy link
Contributor

alice commented Jun 23, 2015

I've fixed the Gruntfile so that it won't create spurious changes to dist/axs_testing.js any more.

@alice
Copy link
Contributor

alice commented Jun 23, 2015

Apologies for coming late to this. This LGTM 👍 once the merge issues are fixed.

@ckundo
Copy link
Collaborator

ckundo commented Jun 30, 2015

@davidhsv bump. Can you resolve the merge conflicts and push again? Thanks!

Conflicts:
	dist/js/axs_testing.js
	src/audits/FocusableElementNotVisibleAndNotAriaHidden.js
@davidhsv
Copy link
Contributor Author

davidhsv commented Jul 1, 2015

@ckundo Done 👍

ckundo added a commit that referenced this pull request Jul 8, 2015
#149 Be able to evaluate page with iframes
@ckundo ckundo merged commit ff9c479 into GoogleChrome:master Jul 8, 2015
alice pushed a commit to alice/accessibility-developer-tools that referenced this pull request Sep 4, 2015
alice pushed a commit that referenced this pull request Sep 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants