Thanks for the response.

To be fair, this behaviour is so unexpected (like, why is it the third
occurrence and not the second?) that I really thought that I was very
tired yesterday evening, and hoped that the bug would have disappeared
today.  But… no.  It is still there.  Sorry.

I tried to reproduce the behaviour at work, and with Firefox on my
phone, and it behaved normally in these other devices.  I guess that
it’s not the same version of Firefox (and/or language settings, or even
system).  On my home computer, it’s still there.

By the way, the index of the occurrence is correctly given: it starts
with “Occurrence 1 sur 4”, then “Occurrence 2 sur 4”, then “Occurrence 4
sur 4”, then “Occurrence 1 sur 4 Bas de la page atteint, poursuite au
début”.  This time, it did not reach occurrence 3 even at the first
cycle.

I wasn’t aware of the Ctrl+G shortcut ☺  Thanks!  The behaviour is the
same with it than by clicking on the down arrow in the interface.

I also tried with other searches (on the same webpage), like “function”.
This time, there are 17 occurrences, and there are more misses (using
Ctrl+G): it misses this time the 8th, 13th, and 16th occurrences.  It is
even less expected than before ☹

It is very difficult to understand the pattern there.  When I try
looking for “Sw”, I get 9 occurrences, and no miss: all 9 occurrences
get to be reached one after the other.

The fact that the bug does not appear on other systems or on a fresh
install as you did seems to indicate that something is wrong with my
system :-\  I did not remember having changed any behaviours of Firefox
in a strange way.  I did install some plug-ins in Firefox, though: maybe
the bug comes from one of these?

The stranger thing is that the bug seems to be deterministic in my
computer: it’s always the third occurrence for the “addEventListener”
search and the 8, 13, 16th occurrences for the “function” search.  This
seems to indicate that it’s not an issue with my keyboard accidentally
pressing twice Ctrl+G or something like that.  This is strange :-\

If I can help, don’t hesitate to ask for more details.  But again, this
bug is actually more funny than harmful.

Regards,
Martin.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1835467

Title:
  Repeatingly looking for the next occurrence of a word search in a
  webpage misses one occurrence.

Status in firefox package in Ubuntu:
  Incomplete

Bug description:
  Hi,
  This is probably the most unexpected bug that I have ever seen. Fortunately, 
it is benign.

  How to reproduce:
  - Go to the webpage https://www.w3schools.com/howto/howto_js_autocomplete.asp
  - Type Ctrl+f to look for a word through the webpage.
  - Search for addEventListener. Firefox successfully found 4 occurrences on 
the webpage.
  - Using the arrows next to the search box, loop through all occurrences. 
Firefox then jumps to the following occurrences, in order:
  1. inp.addEventListener("input", function(e) {
  2. b.addEventListener("click", function(e) {
  3. inp.addEventListener("keydown", function(e) { (In my screen is, it was 
hidden by the message about cookies: scrolling down by 1cm makes it appear.)
  4. document.addEventListener("click", function (e) {
  5. First occurrence again: inp.addEventListener("input", function(e) {
  6. Second occurrence again: b.addEventListener("click", function(e) {
  7. Firefox then directly jumps to the fourth occurrence, missing the third 
one: document.addEventListener("click", function (e) {
  8. (goes back to 5).

  In other words, although the first cycle through all occurrences was
  correct, the following cycles completely miss the third occurrence! I
  have restarted Firefox and still get this behaviour.

  If instead of clicking on the “down” arrow to look for the second
  occurrence one looks backwards with the “up” arrow, then it is
  “b.addEventListener("click", function(e) {” instead of
  “inp.addEventListener("keydown", function(e) {” which is missing from
  the loop: it seems that whenever cycling through all occurrences of a
  search in a webpage, if there are only four occurrences, then the
  third one is never reached except in the first cycle.

  I am sending a screenshot of the situation.

  This is a very unexpected behaviour, but of very minor consequence:
  there is no need to place a high level of importance for this bug, I
  guess.

  Regards,
  Martin.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: firefox 67.0.4+build1-0ubuntu0.18.04.1
  ProcVersionSignature: Ubuntu 4.15.0-54.58-generic 4.15.18
  Uname: Linux 4.15.0-54-generic x86_64
  AddonCompatCheckDisabled: False
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.15.0-54-generic.
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  martin     1585 F.... pulseaudio
  BuildID: 20190620092152
  Card0.Amixer.info:
   Card hw:0 'PCH'/'HDA Intel PCH at 0x90910000 irq 95'
     Mixer name : 'Realtek ALC233'
     Components : 'HDA:10ec0235,17aa3825,00100002 
HDA:80862882,80860101,00100000'
     Controls      : 33
     Simple ctrls  : 14
  Channel: Unavailable
  CurrentDesktop: LXDE
  Date: Thu Jul  4 23:24:35 2019
  Extensions: extensions.sqlite corrupt or missing
  ForcedLayersAccel: False
  IfupdownConfig:
   # interfaces(5) file used by ifup(8) and ifdown(8)
   auto lo
   iface lo inet loopback
  IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  InstallationDate: Installed on 2016-12-05 (941 days ago)
  InstallationMedia: Lubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
  IpRoute:
   default via 192.168.1.1 dev wlp4s0 proto dhcp metric 600
   192.168.1.0/24 dev wlp4s0 proto kernel scope link src 192.168.1.3 metric 600
  Locales: extensions.sqlite corrupt or missing
  MostRecentCrashID: bp-7e1f310f-034d-4a7b-b742-54df41180319
  Plugins: Shockwave Flash - /usr/lib/flashplugin-installer/libflashplayer.so
  PrefErrors: Unexpected character ',' before close parenthesis @ 
/usr/lib/firefox/omni.ja:greprefs.js:1151
  PrefSources: prefs.js
  Profiles: Profile0 (Default) - LastVersion=67.0.4/20190620092152 (In use)
  RunningIncompatibleAddons: False
  SourcePackage: firefox
  SubmittedCrashIDs:
   bp-7e1f310f-034d-4a7b-b742-54df41180319
   bp-daebd85b-34c2-4ab9-88ea-1fc091180208
   bp-dd2282e2-f0cb-47f7-a13a-a16c20180102
  Themes: extensions.sqlite corrupt or missing
  UpgradeStatus: Upgraded to bionic on 2018-08-29 (309 days ago)
  dmi.bios.date: 01/12/2016
  dmi.bios.vendor: LENOVO
  dmi.bios.version: CCCN19WW(V2.05)
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: Lenovo B50-10
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0J40700 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo B50-10
  dmi.modalias: 
dmi:bvnLENOVO:bvrCCCN19WW(V2.05):bd01/12/2016:svnLENOVO:pn80QR:pvrLenovoB50-10:rvnLENOVO:rnLenovoB50-10:rvrSDK0J40700WIN:cvnLENOVO:ct10:cvrLenovoB50-10:
  dmi.product.family: IDEAPAD
  dmi.product.name: 80QR
  dmi.product.version: Lenovo B50-10
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1835467/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to