Bug 220707 - [GTK] WebKitGTK crashes when scrolling in pdfjs viewer
Summary: [GTK] WebKitGTK crashes when scrolling in pdfjs viewer
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2021-01-18 02:47 PST by bugreporter781
Modified: 2021-01-18 02:51 PST (History)
0 users

See Also:


Attachments
Bug demo in gjs (1.26 KB, text/plain)
2021-01-18 02:47 PST, bugreporter781
no flags Details
Bug demo using PyGObject (1.18 KB, text/plain)
2021-01-18 02:48 PST, bugreporter781
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugreporter781 2021-01-18 02:47:05 PST
Created attachment 417821 [details]
Bug demo in gjs

I was making a toy pdf viewer with gjs, webkitgtk, and pdfjs.

When I opened the sample pdf that comes with pdfjs and try scrolling up and down, webkitgtk processes crashed. 

I wrote the same script using another GObject Introspection binding, PyGObject, and it was reproduced with PyGObject as well.

The backtraces seem to suggest that problems lie within javascriptcoregtk, but I'm not sure about that.

Steps to reproduce:
1. Make a folder named 'bug_demo'
2. Download and unpack pdfjs 2.5.207-dist.zip [1] to a sub-directory 'pdfjs'
3. Download the attached bug demo(s), and put it into 'bug_demo'
4. Run the bug demo
5. Use pdfjs viewer to open 'pdfjs/web/compressed.tracemonkey-pldi-09.pdf'
6. Try scrolling up and down

[1] https://github.com/mozilla/pdf.js/releases/download/v2.5.207/pdfjs-2.5.207-dist.zip
Comment 1 bugreporter781 2021-01-18 02:48:08 PST
Created attachment 417823 [details]
Bug demo using PyGObject
Comment 2 bugreporter781 2021-01-18 02:51:38 PST
The version of WebKitGTK is 2.30.4 .