Skip to content

Allow inclusion of JavaScript and CSS file paths in the HtmlContentView #944

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

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jul 11, 2017

This change adds the client-side behavior for new parameters to
Set-VSCodeHtmlContentView which allow the user to specify JavaScriptPaths
and StyleSheetPaths to include local JavaScript and CSS files into their
HTML views.

Resolves #910.

This change adds the client-side behavior for new parameters to
Set-VSCodeHtmlContentView which allow the user to specify JavaScriptPaths
and StyleSheetPaths to include local JavaScript and CSS files into their
HTML views.

Resolves PowerShell#910.
@daviwil daviwil added this to the July 2017 milestone Jul 11, 2017
@kamilkosek
Copy link
Contributor

I was just wondering what the nonce is for 😃
nonce

BTW, any plans on parameter passing from content-view to editor command ?

@daviwil
Copy link
Contributor Author

daviwil commented Jul 11, 2017

Yep, the nonce helps avoid malicious JS and CSS being loaded into the user's browser. You could say that someone would just as easily be able to use these new parameters to load malicious scripts but it does give us the capability to further restrict their use from within PowerShell depending on the machine's security settings.

I think the only thing needed for that right now is allowing parameters to be send to registered editor commands via the protocol. I'll look into it for this release.

@daviwil daviwil merged commit 58e969b into PowerShell:master Jul 11, 2017
@daviwil daviwil deleted the javascript-references branch July 11, 2017 09:04
@daviwil daviwil modified the milestones: July 2017, 1.5.0 Oct 26, 2017
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