Closed Bug 1780564 Opened 2 years ago Closed 2 years ago

Glean default search engine data is reporting errors when submitting an empty submission URL

Categories

(Firefox :: Search, defect, P1)

defect

Tracking

()

VERIFIED FIXED
104 Branch
Tracking Status
firefox-esr102 --- verified
firefox104 --- verified
firefox105 --- verified

People

(Reporter: chutten, Assigned: chutten)

References

Details

Attachments

(2 files)

Missed a case in bug 1775312. Specifically for private search engine's submission url, it's still being set to an invalid URL here:

    if (info.defaultPrivateSearchEngineData) {
      Glean.searchEnginePrivate.displayName.set(
        info.defaultPrivateSearchEngineData.name
      );
      Glean.searchEnginePrivate.loadPath.set(
        info.defaultPrivateSearchEngineData.loadPath
      );
      Glean.searchEnginePrivate.submissionUrl.set(
        info.defaultPrivateSearchEngineData.submissionURL ?? "blank:"
      );
      Glean.searchEnginePrivate.verified.set(
        info.defaultPrivateSearchEngineData.origin
      );
    } else {
      Glean.searchEnginePrivate.displayName.set("");
      Glean.searchEnginePrivate.loadPath.set("");
      Glean.searchEnginePrivate.submissionUrl.set(""); // <= HERE
      Glean.searchEnginePrivate.verified.set("");
    }

I shoulda caught it in review. Whoops!

Glean assumes non-url-parseable values for url types are a mistake.

Pushed by chutten@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1702a9baea2e
Ensure the private search submission url isn't blank r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Flags: qe-verify+

Comment on attachment 9286457 [details]
Bug 1780564 - Ensure the private search submission url isn't blank r?standard8!

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fixes a telemetry reporting issue with default search engines which is raising errors due to incorrect recording (follow-on from bug 1775312)
  • User impact if declined: N/A. Fixes some new telemetry reporting
  • Fix Landed on Version: 104
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial change to handle the telemetry reporting better and avoid errors being reported.
Attachment #9286457 - Flags: approval-mozilla-esr102?

Comment on attachment 9286457 [details]
Bug 1780564 - Ensure the private search submission url isn't blank r?standard8!

Approved for 102.2esr

Attachment #9286457 - Flags: approval-mozilla-esr102? → approval-mozilla-esr102+

Comment on attachment 9286457 [details]
Bug 1780564 - Ensure the private search submission url isn't blank r?standard8!

this needs a rebased patch for esr102

Flags: needinfo?(chutten)
Attachment #9286457 - Flags: approval-mozilla-esr102+ → approval-mozilla-esr102?

Glean assumes non-url-parseable values for url types are a mistake.

Wasn't sure how to properly attach the esr102 version of this, so here it is as a slightly different differential revision. Is this what you needed, Dianna?

Flags: needinfo?(chutten) → needinfo?(dsmith)

Comment on attachment 9289955 [details]
Bug 1780564 - Ensure the private search submission url isn't blank r?standard8!

Yes this grafted cleanly. It was complaining because SearchService.sys.mjs didn't exist in esr102.

Flags: needinfo?(dsmith)
Attachment #9289955 - Flags: approval-mozilla-esr102?
Attachment #9286457 - Flags: approval-mozilla-esr102?

Comment on attachment 9289955 [details]
Bug 1780564 - Ensure the private search submission url isn't blank r?standard8!

Approved for 102.2esr

Attachment #9289955 - Flags: approval-mozilla-esr102? → approval-mozilla-esr102+

Confirmed that on 102.1.0(w/o fix) that glean.value.invalid_value is recorded for search.engine.private.submission_url in case of private engine enabled and verified on 102.2.0RCb2(w fix) that the value is recorded for search.engine.private.submission_url as "blank:" and no glean.value.invalid_value.
Verification done on Windows 10, Mac 11 and Ubuntu 22.

Will follow up Monday with the rest of channels.

Followed up with verification on Windows 10, Mac 11 and Ubuntu 22. using 105.0a1 (2022-08-22) and 104.0 (64-bit) RC3

Status: RESOLVED → VERIFIED
Has STR: --- → yes
Flags: qe-verify+ → in-qa-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: