Not just web browsers, Acrobat (and probably other PDF readers) have supported executing Javascript in PDFs for decades.
I was joking in 2007, when I was working at Siemens, to my boss, that an Excel cell can contain God and the Multiverse when I put an ActiveX inside that was basically a program I made which would draw a 3D animation based on parameters contained on other cells. Let's say the boss was impressed though for me was just basic OLE.
I see from time to time that younger generations reinvent/rediscover the wheel and I chuckle.
loading story #42653433
This is even in the ISO standard now
Which makes sense, why would browsers randomly add JS to PDF if it wasn’t already part of the standard?
loading story #42649857
why??? for what possible secure white hat reason could you want to run js in pdfs??!? is nobody sane running the pdf org?
loading story #42702638