https://github.com/jack12816/chrome-new-tab-bug
Crash on PDF files wich are opened on new tabs
https://github.com/jack12816/chrome-new-tab-bug
bug chrome demo
Last synced: 9 months ago
JSON representation
Crash on PDF files wich are opened on new tabs
- Host: GitHub
- URL: https://github.com/jack12816/chrome-new-tab-bug
- Owner: Jack12816
- Created: 2018-03-06T13:35:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T17:47:09.000Z (over 7 years ago)
- Last Synced: 2024-10-19T02:17:28.805Z (about 1 year ago)
- Topics: bug, chrome, demo
- Language: Ruby
- Homepage: https://bugs.chromium.org/p/chromium/issues/detail?id=819220
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chrome new tab bug
- [Whats the issue?](#whats-the-issue)
- [How to reproduce the issue](#how-to-reproduce-the-issue)
- [Requirements](#requirements)
- [Expected result](#expected-result)
- [Demo video](#demo-video)
## Whats the issue?
Looks like Chrome/Chromium have an issue with the `Page.setDownloadBehavior`
development protocol command in combination with the
`always_open_pdf_externally` preference on new windows/tabs. The Chrome/Chromium
process dies suddenly without any logging. Also, no segmentation fault is
logged.
## How to reproduce the issue
You need to set up the Chrome/Chromium session with the specific preferences and
the open a random website. When you click on a link (`target="_blank"` /
`window.open`) to a PDF file you will see the crash.
I also setup this repository to demonstrate the issue and anybody can try to
reproduce it. Just take care of the requirements and run the following commands
to start the example:
```bash
# Install the required gems
$ bundle install
# Start the example
$ bundle exec ruby test.rb
```
### Requirements
* Linux >= 4.15.0
* Google Chrome >=64.0.3282.186
* ChromeDriver >=2.33
* Ruby >=2.4.0
* Bundler >= 1.16.0
### Expected result
The example should keep the Chrome/Chromium process (and window) open for at
least 60 seconds. You should also see the PDF file downloaded to the
`Downloads` directory.
### Demo video
[See the demo video](./demo.webm).