Closed Bug 2023284 Opened 4 months ago Closed 4 months ago

when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated

Categories

(Core :: Machine Learning: Frontend, defect, P1)

defect
Points:
3

Tracking

()

VERIFIED FIXED
151 Branch
Tracking Status
firefox150 + verified
firefox151 --- verified

People

(Reporter: ngrato, Assigned: ngrato)

References

Details

(Whiteboard: [genai][chat])

Attachments

(2 files)

when a user navigates to another url, for example opens a link from browser history and or favorite the side bar is not open and a new chat is not initiated.

This might have to do with "should keep open" not be initialized correctly on the tab state. Look into ontabselected as well to see if we are setting the side bar to close to forcefully.

QA Contact: rdoghi
Blocks: 2024069
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8e4d3808a211 https://hg.mozilla.org/integration/autoland/rev/b79ed9de173d when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0a106cfd83fb https://hg.mozilla.org/integration/autoland/rev/cc4ce2e60578 Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" for causing bc failures at /browser_aiwindow_urlbar_chat.js

Backed out for causing bc failures at browser_aiwindow_urlbar_chat.js
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_aiwindow_urlbar_chat.js | test_chat_intent_in_aiwindow - Uncaught exception in test - TypeError: can't access property "length", telemetries is null

Flags: needinfo?(ngrato)

Silaghi Andreea, do you know why the links do not work from about.. the backout, failure etc? I ran "browser_aiwindow_urlbar_chat.js" locally and it worked so a little in the dark on actual error.

Flags: needinfo?(ngrato) → needinfo?(asilaghi)
Flags: needinfo?(ngrato)
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6b56cfb4904e https://hg.mozilla.org/integration/autoland/rev/da7799989ad9 when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e8fcb681a441 https://hg.mozilla.org/integration/autoland/rev/22d39956fab6 Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" for causing mochitests failures in browser_smartwindow_leak.js.

Reverted this because it was causing mochitests failures in browser_smartwindow_leak.js.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_smartwindow_leak.js | Shutdown - leaked window until shutdown [url = chrome://browser/content/aiwindow/aiWindow.html]
Flags: needinfo?(ngrato)
Blocks: 2024028
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ae51b552a099 https://hg.mozilla.org/integration/autoland/rev/7d7448a57400 when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers
Pushed by imoraru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/881a9b31c67e https://hg.mozilla.org/integration/autoland/rev/9ad8eed64ea3 Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" for causing bc failures on browser_smartwindow_leak.js.

Revert for causing bc failures on browser_smartwindow_leak.js.

Flags: needinfo?(ngrato)
Flags: needinfo?(ngrato)

backout pushed, changes should reflect when hg-git sync is working again

Pushed by jonalmeida942@gmail.com: https://github.com/mozilla-firefox/firefox/commit/36dc14db579d https://hg.mozilla.org/integration/autoland/rev/e83d81f39e33 when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers https://github.com/mozilla-firefox/firefox/commit/69f97dfcf8e5 https://hg.mozilla.org/integration/autoland/rev/301179bd3a80 Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" by dev request
Pushed by sguelton@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d03c1ac4cd4d https://hg.mozilla.org/integration/autoland/rev/81c5f0b98ce4 when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b5e566cd995c https://hg.mozilla.org/integration/autoland/rev/9cf7b9ba6a8a Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" for causing bc failures at browser_smartwindow_leak.js

Backed out for causing bc failures at browser_smartwindow_leak.js
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(ngrato)
Flags: needinfo?(ngrato)

Authored by https://github.com/nickgrato
https://github.com/mozilla/enterprise-firefox/commit/6b56cfb4904e045a7e6b6fc0557ec8b89bbcc227
[enterprise-main] Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers

Authored by https://github.com/sstanca-cell
https://github.com/mozilla/enterprise-firefox/commit/e8fcb681a4416c208a76a9e3b95cd23ee4d0d459
[enterprise-main] Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" for causing mochitests failures in browser_smartwindow_leak.js.

Authored by https://github.com/nickgrato
https://github.com/mozilla/enterprise-firefox/commit/ae51b552a099501eb9396c97b92eb21f2f5e9edf
[enterprise-main] Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers

Authored by https://github.com/IulianMoraru
https://github.com/mozilla/enterprise-firefox/commit/881a9b31c67ed0d679fc8978085583ac6a200a8b
[enterprise-main] Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" for causing bc failures on browser_smartwindow_leak.js.

Authored by https://github.com/nickgrato
https://github.com/mozilla/enterprise-firefox/commit/36dc14db579d9eab56421d2391ecab3917fecf18
[enterprise-main] Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers

Authored by https://github.com/amarc-mozilla
https://github.com/mozilla/enterprise-firefox/commit/69f97dfcf8e59d311b7c199ca5ee301f08403b80
[enterprise-main] Revert "Bug 2023284 - when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers" by dev request

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/acf3a944781b https://hg.mozilla.org/integration/autoland/rev/03d68b1d529c when switching to a new tab ( not the New Tab ) but a new tab, sidebar and new converstation not initiated r=omarg,ai-frontend-reviewers
Status: REOPENED → RESOLVED
Closed: 4 months ago4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

[Tracking Requested - why for this release]:
Required for Smart Window Feature Fx150 MVP launch. Part of uplift fixes tracked here https://bugzilla.mozilla.org/show_bug.cgi?id=2024028

NI @rdoghi to help QA in Nightly Fx151 before uplifting to beta thanks!

Flags: qe-verify+
Flags: needinfo?(rdoghi)

This issue is verified as fixed in our latest Nightly build 151.0a1 (2026-03-25), The Ask Sidebar is correctly saving its state for each specific tab.

QA Whiteboard: [qa-ver-needed-c151/b150]
Flags: needinfo?(rdoghi)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Opening a new URL will not open the side bar with a fresh smart-window side bar as intended.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: - Sign into Smart Window
  • Click Fx view
  • from here you can either click a recently closed tab or open in new tab from the history in the side bar. The idea is to have a new url window open to see that the sidebar also opens with a fresh chat.
  • Risk associated with taking this patch: low
  • Explanation of risk level: (maybe a little higher than low) This handles tab state and tab initiation. I think with the amount of test it should be accurate. Also if this does break the user would be left with out the initial side bar on new url pages. Not ideal, but the user could toggle the ask button. So it's a little subjective on risk level.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9558049 - Flags: approval-mozilla-beta?
Flags: needinfo?(ngrato)
Attachment #9558049 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed in our latest Beta 150.0b2

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c151/b150] → [qa-ver-done-c151/b150][uplift]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: