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
Adopt ClickHandler for FIE #8864
Conversation
src/url.js
Outdated
* @param {string} url | ||
* @return {!Location} | ||
*/ | ||
export function parseUrlWithA(a, url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we restrict access to this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's nothing really dangerous about it, is there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not dangerous, but we have a cached anchor in this module to avoid every ole caller making there own. And I'd probably want to review anyone using this to make sure they intend to use a cross-origin anchor element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I'll make it restricted then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* Adopt ClickHandler for FIE * restrict parseUrlWithA * fixed types * whitelist presubmits
* Adopt ClickHandler for FIE * restrict parseUrlWithA * fixed types * whitelist presubmits
* Adopt ClickHandler for FIE * restrict parseUrlWithA * fixed types * whitelist presubmits
This is mostly straightforward refactoring, but for some reason GitHub doesn't catch the file move and shows 100% diff on
document-click.js
:(Closes #6578.