I have a script that cycles through a list of bookmarked URLs and opens them in a particular window via chrome-cli. Sometimes everything works fine, but sometimes chrome-cli reports Loading: Yes with Url: chrome://newtab/ and just opens an empty tab in the specified window. It's completely random, I'm not able to reliably reproduce with the same URLs, same window IDs, etc, and on some systems I never see this problem and on some I see it every time. And sometimes when I receive a Url: chrome://newtab status I also see Loading: No but it's also completely random. The one repeatable detail is that chrome-cli will always return "Title: New Tab" for a tab that does not load the URL; for tabs when the URL does load successful Title: is always empty.
Here's example output of it failing; it opened 3 tabs correctly (#s 2, 3, and 5), and two opened as New Tab (#s 1 and 4). When I run this same script over and over again I will have different results with some URLs not opening on one run, opening successfully on another, etc. I've tried escaping the ?s in the URLs with shell escapes \? and HTML escapes ? with no change in chrome-cli behavior.
chrome-cli: 1.8.0 macOS Catalina
I have a script that cycles through a list of bookmarked URLs and opens them in a particular window via chrome-cli. Sometimes everything works fine, but sometimes chrome-cli reports
Loading: Yes
withUrl: chrome://newtab/
and just opens an empty tab in the specified window. It's completely random, I'm not able to reliably reproduce with the same URLs, same window IDs, etc, and on some systems I never see this problem and on some I see it every time. And sometimes when I receive aUrl: chrome://newtab
status I also seeLoading: No
but it's also completely random. The one repeatable detail is that chrome-cli will always return "Title: New Tab" for a tab that does not load the URL; for tabs when the URL does load successfulTitle:
is always empty.Here's example output of it failing; it opened 3 tabs correctly (#s 2, 3, and 5), and two opened as New Tab (#s 1 and 4). When I run this same script over and over again I will have different results with some URLs not opening on one run, opening successfully on another, etc. I've tried escaping the
?
s in the URLs with shell escapes\?
and HTML escapes?
with no change in chrome-cli behavior.Manually running it from the CLI with the same URL also produces the same randomness, opening the first one but not the second:
Same command, same URL, different result. Any thoughts?