#111 FPD makes some pages unusable (including the browser itself)
Closed: Fixed by polcak. Opened by polcak.

Summary

FPD consumes so much resources when visiting https://www.gigabyte.com/Motherboard/B550M-AORUS-ELITE-rev-10-11-12#kf that I need to kill Firefox. The browser is not responsive.

Setup

Pages affected: https://www.gigabyte.com/Motherboard/B550M-AORUS-ELITE-rev-10-11-12#kf
JShelter Version: 0.12

Popup information (open JShelter popup on affected pages:

The page works with FPD off, does not work with FPD on.

Browser: Reproduced in Firefox, other browsers not tested

How to reproduce

  1. Visit the page.

Expected result

I can use Firefox.

Actual result

Firefox is not responsive. It consumes 100% CPU.

Reproducibility

Originally reported by a user https://github.com/polcak/jsrestrictor/issues/191

Workarounds

Disable FPD.

  1. Go to global settings.
  2. Locate the "Fingerprint Detector" section
  3. Click Manage whitelist
  4. type "gigabyte.com" and click "Disable for the domain"

Metadata Update from @polcak:
- Issue assigned to xsalon00

Unfortunately, the issues does not go away with performance optimizations in 0.14. Chromium-based based browsers are also affected.

Metadata Update from @polcak:
- Issue tagged with: performance issue

Fixed in 5c842fd. The browser was overloaded by messages generated by FPD that did not apply the limit of 1000 calls to HTMLElement.prototype.offset(Height | Width).

Other FPD wrappers limit the number of messages to 1000 messages per wrapped property. However, these two special wrappers did not have that limit.

The wrappers now share a counter as distinct wrappers are created for different elements.

Metadata Update from @polcak:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata