Closed Bug 1788088 Opened 4 years ago Closed 1 year ago

SERP Telemetry is recorded as "unknown" rather than "urlbar" when using the address bar with browser.urlbar.openintab set to true (or when alt-enter)

Categories

(Firefox :: Search, defect, P3)

defect

Tracking

()

VERIFIED FIXED
139 Branch
Tracking Status
firefox139 --- verified
firefox140 --- verified

People

(Reporter: standard8, Assigned: mbeier)

References

(Blocks 1 open bug)

Details

(Whiteboard: [search-telemetry-backlog][sng])

Attachments

(1 external file)

STR

  1. Start Firefox.
  2. Via about:config, set browser.urlbar.openintab to true.
  3. Visit any web page.
  4. Whilst on that page, type "test" in the address bar (or any other search term)
  5. Press enter.

=> The search opens in a new tab.

  1. Visit about:telemetry
  2. On the telemetry page search for browser.search (you may need to reload).

Expected Results

  • There should be a browser.search.content.urlbar entry with a record that has a count of one.

Actual Results

  • There is a browser.search.content.unknown with a record that has a count of one.
See Also: → 1782179
Whiteboard: [search-telemetry-backlog]

This also applies when using alt-enter for an entry in the address bar.

Summary: SERP Telemetry is recorded as "unknown" rather than "urlbar" when using the address bar with browser.urlbar.openintab set to true → SERP Telemetry is recorded as "unknown" rather than "urlbar" when using the address bar with browser.urlbar.openintab set to true (or when alt-enter)
Whiteboard: [search-telemetry-backlog] → [search-telemetry-backlog][sng]
Assignee: nobody → mbeier
Status: NEW → ASSIGNED
Attachment #9476015 - Attachment description: Bug 1788088 - Save SERP sources per search query instead of per browser as the browser is not always known. r?standard8 → Bug 1788088 - Correctly record SERP sources when searches are opened in new tabs. r?jteow
Pushed by mbeier@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/030feec729dd Correctly record SERP sources when searches are opened in new tabs. r=jteow

Backed out for causing bc failures on browser_new_tab_insert_position.js.

[task 2025-04-07T14:28:38.662Z] 14:28:38     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js | (aInsertRelatedAfterCurrent=true, aInsertAfterCurrent=false):  http://example.com/#urlbar should be loaded in the current tab. - 
[task 2025-04-07T14:28:38.663Z] 14:28:38     INFO - Buffered messages finished
[task 2025-04-07T14:28:38.666Z] 14:28:38     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js | (aInsertRelatedAfterCurrent=true, aInsertAfterCurrent=false):  Alt+Enter in the URL bar should open page in a new tab at rightmost - Got 3, expected 6
[task 2025-04-07T14:28:38.666Z] 14:28:38     INFO - Stack trace:
[task 2025-04-07T14:28:38.666Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:test_is:1654
[task 2025-04-07T14:28:38.666Z] 14:28:38     INFO - chrome://mochitests/content/browser/browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js:doTest:228
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - chrome://mochitests/content/browser/browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js:test_settings_insertRelatedAfter:332
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:handleTask:1170
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1242
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1383
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1159
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js | owner tab is set correctly - 
[task 2025-04-07T14:28:38.667Z] 14:28:38     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js | no opener tab is set - 
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - Stack trace:
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:test_ok:1626
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - chrome://mochitests/content/browser/browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js:doTest:234
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - chrome://mochitests/content/browser/browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js:test_settings_insertRelatedAfter:332
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:handleTask:1170
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1242
[task 2025-04-07T14:28:38.670Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1383
[task 2025-04-07T14:28:38.671Z] 14:28:38     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1159
[task 2025-04-07T14:28:38.671Z] 14:28:38     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-04-07T14:28:38.671Z] 14:28:38     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js | (aInsertRelatedAfterCurrent=true, aInsertAfterCurrent=false): openerTab should be selected after closing unrelated tab - 
[task 2025-04-07T14:28:38.671Z] 14:28:38     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_new_tab_insert_position.js | (aInsertRelatedAfterCurrent=true, aInsertAfterCurrent=false): openerTab should be selected after closing related tab - 
[task 2025-04-07T14:28:38.673Z] 14:28:38     INFO - GECKO(1064) | [Child 11795: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f1012172000 == 1 [pid = 11795] [id = 0]
Flags: needinfo?(mbeier)
Attachment #9476015 - Attachment description: Bug 1788088 - Correctly record SERP sources when searches are opened in new tabs. r?jteow → Bug 1788088 - Correctly record SERP sources when searches are opened in new tabs. r=jteow
Blocks: 1929046
Pushed by mbeier@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd4dea70596b Correctly record SERP sources when searches are opened in new tabs. r=jteow
Pushed by mbeier@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7fcfc3486187 Correctly record SERP sources when searches are opened in new tabs. r=jteow
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Flags: needinfo?(mbeier)
Duplicate of this bug: 1782179
See Also: 1782179 →
QA Whiteboard: [qa-triage-done-c140/b139] [qa-verif-needed-c140/b139]

Issue is reproducible on a 2025-04-20 Firefox Nightly build on Windows 10, using the STR from Comment 0.
Verified as fixed on Firefox Nightly 140.0a1 and Firefox 139.0b3 on Windows 10, Ubuntu 22, macOS 14.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c140/b139] [qa-verif-needed-c140/b139] → [qa-triage-done-c140/b139] [qa-ver-done-c140/b139]
Flags: qe-verify+
See Also: → 2068676
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: