It's based on `navigator.doNotTrack`, and the test is effectively identical to what you have below.