Skip to content
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

JS is not executed #7346

Closed
bmblb opened this issue Jun 22, 2021 · 4 comments
Closed

JS is not executed #7346

bmblb opened this issue Jun 22, 2021 · 4 comments

Comments

@bmblb
Copy link

bmblb commented Jun 22, 2021

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 10.0.0 (same happens on 5.5.0)
  • Platform / OS version: WSL1, Windows 10 2004 build 19041.1052
  • URLs (if applicable):
  • Node.js version: 14.17.0

What steps will reproduce the problem?

  1. checkout this simple js app: https://github.com/bmblb/puppeteer-script-bug
  2. cd to the directory, run npm i
  3. run npm run serve & to start local http server in bg mode
  4. run npm run test to execute script

What is the expected result?
Script should log app.js to the console

What happens instead?
Script doesn't log anything

puppeteer-script-bug$ npm run test

> puppeteer_test@1.0.0 test /mnt/f/work/bryntum/tmp/puppeteer-script-bug
> node ./index.js

301
http://localhost:5000/index.html
301
http://localhost:5000/index
200
http://localhost:5000/
200
http://localhost:5000/app.js

Now, if you uncomment line 9 --single-process script will run just fine:

puppeteer-script-bug$ npm run test

> puppeteer_test@1.0.0 test /mnt/f/work/bryntum/tmp/puppeteer-script-bug
> node ./index.js

301
http://localhost:5000/index.html
301
http://localhost:5000/index
200
http://localhost:5000/
200
http://localhost:5000/app.js
0: JSHandle:app.js

I don't really understand what's going on, I couldn't find any report on javascript not running in puppeteer in WSL1. I was looking through other puppeteer bug reports and was just trying random flags that worked for other people, this one helped.

Could you please explain what's happening?

@sadym-chromium
Copy link
Collaborator

Didn't get into details, but at the first glance it looks like a side effect of the OOPiF: #2548

@bmblb
Copy link
Author

bmblb commented Jul 1, 2021

Not using any iframes there though. Just a regular page which loads JS

@stale
Copy link

stale bot commented Jun 24, 2022

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

@stale stale bot added the unconfirmed label Jun 24, 2022
@stale
Copy link

stale bot commented Jul 24, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

@stale stale bot closed this as completed Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants