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

Newer Google Chrome blocks synchronous XHR requests in main thread #2100

Closed
localocavn opened this issue Nov 18, 2020 · 7 comments · Fixed by #2292
Closed

Newer Google Chrome blocks synchronous XHR requests in main thread #2100

localocavn opened this issue Nov 18, 2020 · 7 comments · Fixed by #2292
Labels

Comments

@localocavn
Copy link

Description of problem

From Test plan page, I can't add test case by using the search button

Version or commit hash (if applicable)

8.8 and public.tenant.kiwitcms.org

Steps to Reproduce

  1. Go to test plan (from any) https://public.tenant.kiwitcms.org/plan/3910/teppy-test?
  2. Click search button
    image

3.Select test case (s) from search page:
image

Actual results

It backs to Testplan page with info "No records found"

Expected results

It backs to Testplan page with the list of testcases have been selected in previous step.

Additional info (Python traceback, logs, etc.)

@atodorov
Copy link
Member

I've been able to select & add exactly the same test cases to the same test plan as shown in the images:
https://public.tenant.kiwitcms.org/plan/3910/teppy-test

What browser is this - name/version/OS ?

Are you using any ad blocker plugins, popup blockers or maybe other plugins which will block communication between pages ?

If you go to https://public.tenant.kiwitcms.org/plan/new/ and click on the + button are you able to add new Product or Version via popups ?

@localocavn
Copy link
Author

localocavn commented Nov 19, 2020

Hi Atodorov,

The browser is: Chrome/Version 87.0.4280.67 (Official Build) (x86_64).
The OS: MacOS Catalina(10.15.7).

I don't use any ad blocker plugins.
I can create Product/Version via popups from https://public.tenant.kiwitcms.org/plan/new/
Add_product_popup

I cleared cookies/cached also.

p/s: I tried with Safari, it works.

:(
Add_TC_to_TP

@asankov
Copy link
Member

asankov commented Nov 20, 2020

I managed to reproduce this on MacOS Catalina 10.15.5 with Chrome Version 86.0.4240.198 (Official Build) (x86_64).

It works just fine with Firefox 82.0.3.

Haven't dug further into the network tab to see what requests are being made and what comes back from the back-end. For sure, when I select TCs on the TC page and click Select, the plan page gets refreshed, but the table stays empty.

@atodorov
Copy link
Member

  • Chrome 81.0.4044.92 on Linux - WORKS
  • Chrome 87.0.4280.66-1 on Linux - FAILS
  • Firefox 68.5.0esr on Linux - WORKS

From what I could see the console quickly flashed a message about synchronous XHR requests in the main thread, which I suspect Chrome started blocking in their latest versions while other browsers still haven't.

This is a bug which needs fixing but for now there is a workaround - use an older or different browser.

@atodorov atodorov added the bug label Nov 22, 2020
@atodorov atodorov changed the title Test plan page: Cannot add testcases from search button Newer Google Chrome blocks synchronous XHR requests in main thread Nov 22, 2020
@asankov
Copy link
Member

asankov commented Nov 23, 2020

@shiron-truong
Copy link

Another workaround is:

enable "Allows synchronous XHR requests in page dismissal" by goto chrome://flags/#allow-sync-xhr-in-page-dismissal and enabled it.

@filipjonckers
Copy link

filipjonckers commented Jan 26, 2021

From a user point of view very annoying issue - as selecting dozens of use cases to create a test plan is the easiest way to create or edit a plan. It initially felt like a bug.
Can reproduce this issue too with Chrome Version 88.0.4324.96 (Official Build) (x86_64)
On Mac OSX Catalina 10.15.7
Expect that XHR will be blocked in near future by Firefox and other browsers too.
This could also be a potential bigger issue as the opt-out option as proposed as fix is only temporary.

atodorov added a commit that referenced this issue Mar 8, 2021
because they are deprecated in Chrome browser and lead to
problems for users. Fixes #2100
atodorov added a commit that referenced this issue Mar 8, 2021
because they are deprecated in Chrome browser and lead to
problems for users. Fixes #2100
APiligrim pushed a commit to MLH-Fellowship/Kiwi that referenced this issue Mar 25, 2021
because they are deprecated in Chrome browser and lead to
problems for users. Fixes kiwitcms#2100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants