Firefox: wait for a tab still on about:blank (e2e 'no access to null') #16
Loading…
Reference in a new issue
No description provided.
Delete branch "akib/fix-ff-blank-tab"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI failure: e2e-firefox on
main(run 43000795213) failed "Read Element with a URL" withBlockFlow has no access to null. The step's new tab was stillabout:blankwhen the page agent was first injected. Firefox refuses that with "Missing host permission for the tab", and the driver treated the refusal as final.about:blank's origin is the stringnull. The failure is timing-dependent; earlier runs passed.Fix (
src/browser/pageDriver.ts)about:blankor no URL), orpermissions.containssays BlockFlow does have access to the tab's site. The second case covers a URL that changed after the refusal, which the new unit test reproduces.permission.missing, naming the site.null; it says "this site".Verified
npm run check: 1145 tests, including the newtests/browser/blankTab.test.tswith the race.npm run e2e:firefox: all checks pass locally, including this one.npm run e2e: all Chromium checks pass.🤖 Generated with Claude Code
Pull request closed