qutebrowser / qutebrowser-extensions

Extension ideas (and at some point code) for qutebrowser
31 stars 1 forks source link

Intercept API: Expose more information #15

Closed The-Compiler closed 5 years ago

The-Compiler commented 5 years ago

https://doc.qt.io/qt-5/qwebengineurlrequestinfo.html has some additional info (especially ResourceType) which we should probably expose.

jgkamat commented 5 years ago

This would be incredibly useful for blocking scripts, I think it would be OK to just define a special value when it can't be populated (eg: qtwebkit).

The-Compiler commented 5 years ago

I agree, using something like ResourceType.Unavailable (or theUnknown which QtWebEngine already has) seems fine. OTOH, maybe QtWebKit support is dropped by the time I get around to doing this :laughing: