Closed Bug 1905379 Opened 1 year ago Closed 1 year ago

Maybe remove regRename pref check when deciding whether to set default guidance notification check and update tests

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Iteration:
129.2 - Jun 24 - Jul 5
Tracking Status
firefox129 --- fixed

People

(Reporter: mviar, Assigned: mviar)

References

Details

Attachments

(1 file)

Investigate whether we can remove the check for the ...regRename pref [here](https://searchfox.org/mozilla-central/source/browser/components/shell/ShellService.sys.mjs#331-333. Theoretically, it will only fall through to the _maybeShowSetDefaultGuidanceNotification if both versions of the one-click Windows set default workaround fail.

In shell/test/browser_setDefaultBrowser.js the value of setDefaultBrowserUserChoice should match the value of setDefaultBrowserUserChoiceRegRename as the latter workaround changing the ancestor registry key only occurs as a fallback when setDefaultBrowserUserChoice is true and the original workaround fails.

These changes don't affect the user experience and do not need to be uplifted into FX128 like the original patch from Bug 1903416.

Assignee: nobody → mviar
Iteration: --- → 129.2 - Jun 24 - Jul 5
Priority: -- → P1
Summary: Cleanup set default guidance notification check and update tests → Clean up set default guidance notification check and update tests
Attachment #9410181 - Attachment description: WIP: Bug 1905379 - Clean up set default guidance notification check and update tests → Bug 1905379 - Clean up set default guidance notification check and update tests
Summary: Clean up set default guidance notification check and update tests → Maybe remove regRename pref check when deciding whether to set default guidance notification check and update tests
Attachment #9410181 - Attachment description: Bug 1905379 - Clean up set default guidance notification check and update tests → WIP: Bug 1905379 - Clean up set default guidance notification check and update tests
Attachment #9410181 - Attachment description: Bug 1905379 - Clean up set default guidance notification check and update tests → WIP: Bug 1905379 - Clean up set default guidance notification check and update tests
Attachment #9410181 - Attachment description: Bug 1905379 - Clean up set default guidance notification check and update tests → WIP: Bug 1905379 - Clean up set default guidance notification check and update tests
Attachment #9410181 - Attachment description: WIP: Bug 1905379 - Clean up set default guidance notification check and update tests → Bug 1905379 - Clean up set default guidance notification check and update tests
Pushed by mviar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50043205a8aa Clean up set default guidance notification check and update tests r=nrishel
Regressions: 1905933

Backed out for causing mochitest failures on browser_download_preferred_action.js and browser_searchTips.js

[task 2024-07-02T16:15:39.634Z] 16:15:39     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should not be saved to disk - 
[task 2024-07-02T16:15:39.635Z] 16:15:39     INFO - Testing download with mime-type application/pdf and extension pdf, preferred action "Use System Default," and Content-Disposition: attachment header.
[task 2024-07-02T16:15:39.635Z] 16:15:39     INFO - Preparing for download...
[task 2024-07-02T16:15:39.636Z] 16:15:39     INFO - Start download of https://example.com/browser/uriloader/exthandler/tests/mochitest/mime_type_download.sjs?contentType=application/pdf&extension=pdf&withHeader
[task 2024-07-02T16:15:39.637Z] 16:15:39     INFO - Wait for download to finish...
[task 2024-07-02T16:15:39.638Z] 16:15:39     INFO - Console message: [JavaScript Warning: "sizeToContent() is deprecated and will be removed in the future." {file: "resource://gre/modules/HelperAppDlg.sys.mjs" line: 876}]
[task 2024-07-02T16:15:39.638Z] 16:15:39     INFO - Buffered messages finished
[task 2024-07-02T16:15:39.639Z] 16:15:39     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Test timed out - 
[task 2024-07-02T16:15:39.639Z] 16:15:39     INFO - GECKO(8832) | Completed ShutdownLeaks collections in process 5192
[task 2024-07-02T16:15:39.640Z] 16:15:39     INFO - TEST-START | Shutdown
Flags: needinfo?(mviar)
Pushed by mviar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4244cdbbd556 Clean up set default guidance notification check and update tests r=nrishel,negin
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Fix has landed.

Flags: needinfo?(mviar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: