BUG-Fly
BUG-Fly
> How about use golang http lib to simulate a favicon request after the page navigation? @ysmood This is not elegant enough in my opinion, and this is a solution...
Now I have a more elegant solution, but I also need an API to determine if chrome has headless mode on. In other words, I'd like to ask if there...
> Hi,Could you share the elegant solution?🙂 When my testing is stable, I'll propose a PR as an API for rod to incorporate
```go func (b *Browser) IsHeadless() bool { res, err := proto.BrowserGetBrowserCommandLine{}.Call(b) utils.E(err) for _, v := range res.Arguments { if strings.Contains(v, "headless") { return true } } return false }...
> @ysmood Is it possible to combine these two APIs(`TriggerFavicon()` `IsHeadless()`) into rod master?
> 我在考虑,是否是因为我全局初始化了,然后运行了一段时间后浏览器崩溃了 如果是在Linux系统下运行的,考虑是否是共享内存用尽了,因为 Chrome 在Linux下会使用共享内存, dev-shm 使用命令行 flag `’–disable-dev-shm-usage` 可以进行禁用
> @Fly-Playgroud 默认是禁用了呀 > > https://github.com/go-rod/rod/blob/2e5e465e216de53e9a3b7c5e329c87009a961181/lib/launcher/launcher.go#L76 > > @endachao 你试试最新版的 rod,说不定就没有问题了 这可能是最近的版本加的吧,至少在0.113 版本上没有
please accroding to this issue #777 do some preview checking for it
> @sohaib17 There is no workaround right now. If this request turns out to be popular, we'll make it work. Hello, I have the same requirement and would like to...