Giter Site home page Giter Site logo

Comments (16)

geoffharcourt avatar geoffharcourt commented on September 17, 2024

One further note: the specs that have these CORB problems pass with Cuprite, so I don't think this is an issue with our app or Chrome.

from apparition.

twalpole avatar twalpole commented on September 17, 2024

Any chance of a reproducible test case/example?

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

Yeah, I'm sorry this isn't more specific. I'm trying to build a small enough application to produce the problem.

from apparition.

twalpole avatar twalpole commented on September 17, 2024

Something along the framework of https://gist.github.com/twalpole/6711ad9aedf4449d5edb01890726e81b (Update to use apparition rather than selenium) is the simplest, although it may be too simple for your situation

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

Still working on a streamlined test case app, but adding

  browser_options: {
    "disable-web-security" => nil,
  },

to my Apparition options makes the tests work successfully (but obviously that's not a great solution).

from apparition.

baffers avatar baffers commented on September 17, 2024

+1... I've found using page.refresh after loading a page that will fire async JS will prevent the Provisional headers problem.. Obviously that solution doesn't scale. I'll give the disable-web-security a shot.

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

I haven't been able to get a small app together yet, but every time I've used a binding to halt the test and have reloaded the page once these issues resolve themselves for the rest of that example.

from apparition.

twalpole avatar twalpole commented on September 17, 2024

Any update on a reproducible test case for this?

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

I tried adapting the script you provided but I can't reproduce the issue in it. I tried injecting all the headers from our report into the output to see if I could get a jQuery.get call to return the issue (so setting the same Cache-Control, etc) without success.

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

Update: I can't reproduce this by pointing the test script you suggested at our production app at a page that fails in test. I'm looking into whether this somehow has anything to do with requests that are on a non-standard HTTP port number in hopes that will be reproducible in a publicly-sharable case.

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

Something is different in newer versions of Chrome, and this problem solved itself even on older versions of our app from the time of the initial issue report. Thanks for your advice about things to try and sorry for the noise!

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

I was wrong, it's just intermittent. Holding off on reopening until I can generate this in a publicly-sharable app.

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

An update here: this appears to also be a problem in Cuprite, but Cuprite has dealt with it by setting disable-web-security out of the box: rubycdp/cuprite#71

This makes me think this issue might be related to CDP and not specific to these drivers.

from apparition.

twalpole avatar twalpole commented on September 17, 2024

Hmmm -- disabling web security doesn't really seem like a good idea

from apparition.

geoffharcourt avatar geoffharcourt commented on September 17, 2024

Agreed. I just wanted to add that here since earlier in the issue I had said it wasn't a problem with Cuprite (thinking it was a unique issue in Apparition).

from apparition.

MinasMazar avatar MinasMazar commented on September 17, 2024

I experienced the same issue. Don't know if it can help the investigation, but putting a before { Capybara.current_session.driver.headers = {} } in the spec (absolutely before any other Capybara statement) was enough to make it green.

from apparition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.