Remove payload.keywordOffer in favor of payload.providesSearchMode
Categories
(Firefox :: Address Bar, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: bugzilla, Assigned: amy, Mentored)
References
Details
Attachments
(1 file)
This is a follow-up item from this review comment. keywordOffer
will no longer be a very descriptive title for this property once the update2 pref is removed. We should rename this property to payload.offersSearchModePreview
.
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
Currently, keywordOffer is a property on UrlbarResult
payloads. Its value is one of the values of UrlbarUtils.KEYWORD_OFFER. This bug entails updating most references to keywordOffers to be a boolean property called offersSearchModePreview
. This will entail:
- Changing the property definition on UrlbarResultPayloads to be a boolean called
offersSearchModePreview
. - Removing UrlbarUtils.KEYWORD_OFFER.
- Replacing references to
keywordOffer: UrlbarUtils.KEYWORD_OFFER.SHOW/HIDE
(example) andkeywordOffer: UrlbarPrefs.get("update2") ? UrlbarUtils.KEYWORD_OFFER.SHOW : UrlbarUtils.KEYWORD_OFFER.HIDE
(example) with simplyoffersSearchModePreview: true
. - Replacing the callers of
UrlbarView._shouldLocalizeSearchResultTitle
with a boolean check onoffersSearchModePreview
(you can also then remove_shouldLocalizeSearchResultTitle
). - Replacing boolean checks on
keywordOffer
to checks onoffersSearchModePreview
(example). - Not replacing the "keywordoffer" string when it refers to a search mode entry point (example)
Reporter | ||
Comment 2•4 years ago
•
|
||
On Marco's suggestion, let's use the less-verbose providesSearchMode
instead of offersSearchModePreview
.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Pushed by htwyford@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c0cd17e0fc86 Remove payload.keywordOffer in favor of payload.providesSearchMode. r=harry
Comment 5•4 years ago
|
||
Backed out changeset c0cd17e0fc86 (Bug 1665066) for causing webdriver failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/f6c7cfd417c8c505414039e29c5663df70f4cc56
Failure log: https://treeherder.mozilla.org/logviewer?job_id=326629159&repo=autoland&lineNumber=88810
Reporter | ||
Comment 6•4 years ago
|
||
It seems quite unlikely that this patch caused those failures. I'll investigate tomorrow with Amy.
Reporter | ||
Comment 7•4 years ago
|
||
Taking a slightly wider view of autoland, it looks like the webdriver failures stopped shortly before this backout. Specifically, it looks like the backout of bug 1640607 fixed them. Could we try relanding this patch and seeing if the failures reoccur?
Pushed by htwyford@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/569af2e58d88 Remove payload.keywordOffer in favor of payload.providesSearchMode. r=harry
Comment 9•4 years ago
|
||
bugherder |
Comment 10•4 years ago
|
||
(In reply to Harry Twyford [:harry] from comment #7)
Taking a slightly wider view of autoland, it looks like the webdriver failures stopped shortly before this backout. Specifically, it looks like the backout of bug 1640607 fixed them. Could we try relanding this patch and seeing if the failures reoccur?
The webdriver tests that originally ran on the backout of Bug 1640607 did not contain the failing test suite, I have added those for clarification:
https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&fromchange=420898d8b7b62c932b90a9a4e42a2a56df50829b&searchStr=wd&tochange=6f4a6f23eaf9ca2ddf6dd2b1153f21b77021e308&selectedTaskRun=WbvGbxfSTBi6xDswVkot_w.0
Description
•