Closed Bug 1774169 Opened 2 years ago Closed 2 years ago

Tab Pickup - add observer, keyboard navigation and tests

Categories

(Firefox :: General, task)

task
Points:
3

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: sclements, Assigned: sclements)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-2022-mr1-firefox-view])

Attachments

(1 file)

No description provided.
Blocks: 1774397
Whiteboard: [fidefe-2022-mr1-firefox-view]
Attachment #9282370 - Attachment description: Bug 1774169 - Add observer, keyboard nav & tests to Tab Pickup list r=Gijs,sfoster → Bug 1774169 - Add observer, keyboard nav & tests to Tab Pickup list r=Gijs
Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2426eb39bdb7 Add observer, keyboard nav & tests to Tab Pickup list r=Gijs

Backed out for causing mochitest failures on browser_newtab_userTypedValue.js

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | leaked 2 window(s) until shutdown [url = about:firefoxview]
Flags: needinfo?(sclements)

I'm not seeing how my patch is the cause of this crash. :Gijs, would you mind taking a look?

Flags: needinfo?(sclements) → needinfo?(gijskruitbosch+bugs)

(In reply to Sarah Clements [:sclements] from comment #4)

I'm not seeing how my patch is the cause of this crash. :Gijs, would you mind taking a look?

It's not a crash, just a leak, I think?

browser/components/sessionstore/test/browser_newtab_userTypedValue.js will open about:firefoxview in a tab and close it pretty quickly. If I had to guess then the observer you added or something else is causing a reference to be held to the Firefox View content window, which is causing it to leak. So the first thing I'd do is get a debug artifact build locally, run just that test, and see if you can reproduce. If so, add logging to the code adding and removing the observer, and see if both of them are called. Does that help?

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(sclements)

Yes, I figured it out - thanks for the tip.

Flags: needinfo?(sclements)
Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67284b4484e5 Add observer, keyboard nav & tests to Tab Pickup list r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: