I just restarted Firefox with add-ons disabled. The behaviour is the same: it misses the third occurrence of “addEventListener” (using Ctrl+g), and the 8th, 13th, and 16th for “function”, but no miss for “Sw”. As far as I can tell, the behaviour is the same whether add-ons are on or not. This was unexpected.
Something interesting that I did not notice before: I searched for “addEventListener” three times, to get to the fourth occurrence of it, then started searching for “function”. The next occurrence of “function” is then the 16th one, and it did reach it. When pressing Ctrl+G, it however missed the 17th to go directly to the first. Then, going through the loop of Ctrl+G reaches all occurrences except the 8th, 13th, and 16th, as before. So there is nothing special about the number 16 when looking for “function”: it only misses it when starting from the first occurrence.
I just restarted Firefox with add-ons disabled. The behaviour is the same: it misses the third occurrence of “addEventListener” (using Ctrl+g), and the 8th, 13th, and 16th for “function”, but no miss for “Sw”. As far as I can tell, the behaviour is the same whether add-ons are on or not. This was unexpected.
Something interesting that I did not notice before: I searched for “addEventListener” three times, to get to the fourth occurrence of it, then started searching for “function”. The next occurrence of “function” is then the 16th one, and it did reach it. When pressing Ctrl+G, it however missed the 17th to go directly to the first. Then, going through the loop of Ctrl+G reaches all occurrences except the 8th, 13th, and 16th, as before. So there is nothing special about the number 16 when looking for “function”: it only misses it when starting from the first occurrence.