-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall/js: move callback helper code to misc/wasm to avoid using eval() #26750
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
Conversation
Message from Gerrit User 5976: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 5065: Patch Set 1: Richard? Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 2: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 3: New patch set was added with same tree, parent, and commit message as Patch Set 2. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 4: New patch set was added with same tree, parent, and commit message as Patch Set 3. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 5: New patch set was added with same tree, parent, and commit message as Patch Set 4. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 6: New patch set was added with same tree, parent, and commit message as Patch Set 5. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 7: New patch set was added with same tree, parent, and commit message as Patch Set 6. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 13620: Patch Set 7: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 5976: Patch Set 7: TryBots beginning. Status page: https://farmer.golang.org/try?commit=54a99ecf Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 5976: Patch Set 7: Build is still in progress... Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 5976: Patch Set 7: TryBot-Result-1 1 of 19 TryBots failed: Consult https://build.golang.org/ to see whether they are new failures. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 13620: Patch Set 7: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
CLAs look good, thanks! |
Message from Gerrit User 5065: Patch Set 8: Code-Review-2 This commit got messed up. It includes tons of stuff now. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 9: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
Message from Gerrit User 12446: Uploaded patch set 10: New patch set was added with same tree, parent, and commit message as Patch Set 9. Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
When using the compiled .wasm with misc/wasm/wasm_exec.js, we get an error message if the site prohibits eval() via the Content-Security-Policy header. This can be resolved by moving the callback helper code from src/syscall/js/callback.go to misc/wasm/wasm_exec.js. Fixes #26748 Change-Id: I28f271b8a00631f4c66a1ac31305e85f20f9d420 GitHub-Last-Rev: a6a0268 GitHub-Pull-Request: #26750 Reviewed-on: https://go-review.googlesource.com/127296 Reviewed-by: Brad Fitzpatrick <[email protected]>
Message from Gerrit User 5065: Patch Set 10: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/127296. |
This PR is being closed because golang.org/cl/127296 has been merged. |
When using the compiled .wasm with misc/wasm/wasm_exec.js, we get an error message if the site prohibits eval() via the Content-Security-Policy header. This can be resolved by moving the callback helper code from src/syscall/js/callback.go to misc/wasm/wasm_exec.js.
Fixes #26748