Skip to content

fix: webviews failing to load the iframe HTML #5103

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 2 commits into from
Apr 14, 2022

Conversation

code-asher
Copy link
Member

Code added in 1.65.0 broke webviews when you are hosting them from the
same domain.

Really should add an e2e test as well but I do not have the time right now.

Code added in 1.65.0 broke webviews when you are hosting them from the
same domain.
@code-asher code-asher requested a review from a team April 14, 2022 16:52
@code-asher code-asher changed the title Fix webviews failing to load the iframe HTML fix: webviews failing to load the iframe HTML Apr 14, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 14, 2022

Really should add an e2e test as well but I do not have the time right now.

Don't worry, I will take care of that later! (Or make tickets and either of us can do it, planning to do it for all patches).

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Appreciate you updating the description/comment as well! 🙌🏼

@code-asher code-asher enabled auto-merge (squash) April 14, 2022 16:59
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #5103 (62dff48) into main (e7e6c16) will not change coverage.
The diff coverage is n/a.

❗ Current head 62dff48 differs from pull request most recent head 95b09ef. Consider uploading reports for the commit 95b09ef to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5103   +/-   ##
=======================================
  Coverage   71.33%   71.33%           
=======================================
  Files          30       30           
  Lines        1685     1685           
  Branches      374      374           
=======================================
  Hits         1202     1202           
  Misses        413      413           
  Partials       70       70           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7e6c16...95b09ef. Read the comment docs.

I think this is more true to the spirit of the code (it is trying to
authenticate cross-origin requests so if it is not cross-origin we can
skip it).
@code-asher code-asher requested a review from jsjoeio April 14, 2022 17:10
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Appreciate your thoroughness!

@code-asher code-asher disabled auto-merge April 14, 2022 17:22
@code-asher code-asher enabled auto-merge (squash) April 14, 2022 17:22
@jsjoeio jsjoeio mentioned this pull request Apr 14, 2022
6 tasks
@code-asher code-asher merged commit b62a68a into coder:main Apr 14, 2022
@code-asher code-asher deleted the webview branch April 14, 2022 18:03
@jsjoeio jsjoeio added this to the 4.3.0 milestone Apr 14, 2022
TinLe pushed a commit to TinLe/code-server that referenced this pull request Apr 23, 2022
Code added in 1.65.0 broke webviews when you are hosting them from the
same domain.
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.

2 participants