Coder Social home page Coder Social logo

Comments (5)

aslushnikov avatar aslushnikov commented on September 21, 2024 3

@stefanstranger So to summarize:

  • certificate works on Chrome/ Edgium
  • certificate doesn't work on Firefox

And similar situation is with playwright:

const { chromium, webkit } = require('playwright');

(async () => {
  for (const type of [chromium, firefox]) {
    const browser = await type.launch();
    const context = await browser.newContext();
    const page = await context.newPage('https://stranger.nl/').catch(e => null);
    console.log(`Loaded: ` + (page ? 'YES' : 'NO')); // YES for chromium, NO for firefox
    await browser.close();
  }
})();

PlayWright is consistent with what I see as a user. Which sounds great to me!

Closing this; let us know if we missed something here!

from playwright.

pavelfeldman avatar pavelfeldman commented on September 21, 2024 1

I can repro this on Windows with both WebKit and Firefox. Chromium works fine.

You can try ignoreHTTPSErrors as a workaround while we are figuring the CAs out.

const { webkit } = require('playwright');

(async () => {
  const browser = await webkit.launch();
  const context = await browser.newContext({ ignoreHTTPSError: true });
  const page = await context.newPage('https://stranger.nl/');
  await page.screenshot({ path: 'stranger.png' });
  await browser.close();
})();

from playwright.

pavelfeldman avatar pavelfeldman commented on September 21, 2024 1

Also, to Joel's point, I just tried it with stock Firefox on Windows and it did not like the certificate either!

Screen Shot 2020-01-24 at 8 05 25 PM

from playwright.

JoelEinbinder avatar JoelEinbinder commented on September 21, 2024

I assume this is with webkit on linux? I get an https error for your site when I try to view it in GNOME Web. Playwright successfully found a cross browser error for you! :)

More seriously, I assume our linux webkit is using different root certificates than iOS/Mac webkit. I don't see an error with your site when I view it from an iPhone. Maybe we can add some certificates to more closely match the Safari experience.

from playwright.

stefanstranger avatar stefanstranger commented on September 21, 2024

Well it's just a Lets Encrypt certificate. And wel I check the cert in Edge its OK.

from playwright.

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.