#2 Access to original toString
Closed 2 years ago by polcak. Opened 3 years ago by polcak.

var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
// Native toString function from iframe context which can be used later on.
var iframeToString = iframe.contentWindow.window.Function.prototype.toString;
iframe.parentNode.removeChild(iframe);

iframeToString.call(performance.now)

returns something like

function() {
                // This comment is needed to correctly differentiate wrappers with the same body
                // by the toString() wrapper
                // Performance.prototype.now - undefined
                // Prevent fingerprintability of the extension by toString behaviour
                // 2277342522

                    var originalPerformanceValue = origNow.call(window.performance);
                    var limit_precision = doNoise ? noise_function : rounding_function;
                    return limit_precision(originalPerformanceValue, precision);

            }" 

This is fixed in the nscl branches that will be a part of the 0.5 release.

Metadata Update from @polcak:
- Issue private status set to: False (was: True)

2 years ago

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

2 years ago

Login to comment on this ticket.

Metadata