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

[BUG] NS_BINDING_ABORTED when '#' in url (Firefox) #12912

Closed
LFYSec opened this issue Mar 20, 2022 · 3 comments
Closed

[BUG] NS_BINDING_ABORTED when '#' in url (Firefox) #12912

LFYSec opened this issue Mar 20, 2022 · 3 comments

Comments

@LFYSec
Copy link

LFYSec commented Mar 20, 2022

Context:

  • Playwright Version: 1.20
  • Operating System: Mac
  • Python
  • Browser: Firefox

Describe the bug

When using firefox browser, when the requested url contains #, page.goto reports an error: NS_BINDING_ABORTED
image

@mxschmitt
Copy link
Member

Could you share a full repro? The following works for me:

// @ts-check
const playwright = require('playwright');

(async () => {
  // Try to add 'firefox' to the list ↓
  for (const browserType of ['firefox']) {
    /** @type {import('playwright').Browser} */
    const browser = await playwright[browserType].launch();
    const context = await browser.newContext();
    const page = await context.newPage();
    await page.goto('https://github.com/microsoft/playwright#readme');
    await page.screenshot({ path: `example-${browserType}.png` });
    await browser.close();
  }
})();

@LFYSec
Copy link
Author

LFYSec commented Mar 21, 2022

You can test with this link Here is my code using python binding:
await page.goto(req.url, wait_until="networkidle")

image

@mxschmitt
Copy link
Member

Works as well for me! Could you try running it with DEBUG=pw:browser,pw:api node test.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants