Open Bug 1518733 Opened 2 years ago

Getter invoke authorization are cleared when trying to autocomplete on an unexisting prop

Categories

(DevTools :: Console, defect, P2)

65 Branch
defect

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

Details

Steps to reproduce

  1. Open the console
  2. Evaluate the following:
x = Object.create(null, Object.getOwnPropertyDescriptors({
  get foo() {
    return Object.create(null, Object.getOwnPropertyDescriptors({
      hello: "",
      world: "",
    }));
  }
}));
  1. Type x.foo.
  2. A confirm dialog should open, confirm you want to invoke
  3. Type z. (input should now be x.foo.z.)
  4. Hit backspace twice to get back at x.foo.

Expected results

The autocomplete popup is displayed with 2 items (hello and world)

Actual results

The confirm dialog popups again


We are probably clearing the invoke authorizations too agressively.

You need to log in before you can comment on or make changes to this bug.