When a bug is a feature

After porting Falkon to Qt6 the WebIspector started working when JavaScript was disable. I and few people who help with Falkon development were of an opinion that this is a new feature of Qt6 and did not look too deep into it. What a nice feature to have.

It has a dark side as well, after porting to Qt6 the WebInspector settings were not saved into the profile. It was a bummer. I tried to investigate it but came with nothing, I looked at it from a wrong angle and wasted a lot of time. The solution was simple, initialize the QWebEngineView with an active QWebEngineProfile and the settings will be remembered.

And here we come a full circle. After fixing saving and loading of WebInspector preferences by making sure the View (well, the Page which the View is using) is using the correct profile, the feature that it runs even with disabled javascript was broken. So with this knowledge I could construct a workaround and always enable JavaScript for the WebInspector. Other option to consider is to create a new profile specificaly for WebInspector with specific configuration for it. Both solutions are good enough, each with its own pros and cons.

Using the current profile results in:

  • There is only one profile on disk.
  • Most of the user settings are still respected (local storage, history, cookiesm etc.).
  • The required settings (JavaScript) has to be force enabled, and maybe more, thiws has to be found over time.

Using a new profile results in:

  • Guard against using this profile in browser itself.
  • Different configuration of web profile settings ( data location, images, etc.).

I went with same profile solution, I think it is simpler to bake few exceptions compared to doubling the configuration. The time will tell how good this solution is.

Articles from blogs I follow:

Jekyll Publishing on FreeBSD

I switched to static website generation with Jekyll in 2019 (probably because of Carl Schwan, who is somehow my guiding-spirit in webulous things even if he does Hugo things nowadays). That means Ruby, and I’ve got various bits-and-notes documents saying …

via [bobulate] July 1, 2025

Why is your open source project still hosted on GitHub?

Perhaps the younger generation don't know anything about the past "evils" of Microsoft and naively believe that Microsoft is now the good friend to open source, but the truth is that all Microsoft acquisitions of open source projects is a busi…

via unixdigest.com May 22, 2025

Steve Ballmer was an underrated CEO

There's a common narrative that Microsoft was moribund under Steve Ballmer and then later saved by the miraculous leadership of Satya Nadella. This is the dominant narrative in every online discussion about the topic I've seen and it's a commo…

via danluu.com October 28, 2024

Generated by openring