Closed Bug 1686767 Opened 3 years ago Closed 3 years ago

Give weather extension more time to produce a result

Categories

(Firefox :: Address Bar, enhancement, P2)

enhancement
Points:
1

Tracking

()

RESOLVED FIXED
86 Branch
Iteration:
86.3 - Jan 11 - Jan 24
Tracking Status
firefox85 --- fixed
firefox86 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

Details

Attachments

(1 file)

Now that I can measure the real-world performance of fetching location and weather data from Accuweather via Mozilla's proxy, it looks like the 400ms timeout added in bug 1679890 doesn't cut it. Since fetching weather/alert data blocks on first getting a location response, the average time to return a result to the controller is ~450ms. I've seen it go as high as 900ms for some queries. That average may get higher for slow connections or people with high pings. I plan on setting extension.timeout to 1000ms when the weather extension is installed. While this might technically cause flicker, I don't think it's a big deal seeing as the weather result always appears in the last position, so it's not pushing any other results down.

Having browser.urlbar.extension.enabled be a hidden pref was causing issues with the new experimental APIs and their tests. Both the APIs and their tests first read the value of the pref before modifying it so it can later be restored to its default value. The default value of a hidden pref is undefined, which was causing errors. It's not a particularly sensitive pref, so I think unhiding it is preferable to finding a workaround to get the APIs/tests working with hidden prefs.

Pushed by htwyford@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/663e0df951c7
Unhide urlbar.extension.enabled pref and add experimental APIs to set it. r=adw
Pushed by htwyford@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e7217f34ea28
Unhide urlbar.extension.enabled pref and add experimental APIs to set it. r=adw
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

Comment on attachment 9197152 [details]
Bug 1686767 - Unhide urlbar.extension.enabled pref and add experimental APIs to set it. r?adw!

Beta/Release Uplift Approval Request

  • User impact if declined: We will be unable to run an experiment planned for 85.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small change with tests; tightly scoped to private APIs developed to run experiments in the Urlbar.
  • String changes made/needed:
Attachment #9197152 - Flags: approval-mozilla-beta?

How does this block an experiment? Can't the experiment itself set the pref?

Flags: needinfo?(htwyford)

The pref is currently a hidden pref, which can't be managed by our usual extension APIs. This patch un-hides the pref. If uplift is a problem, I can write a workaround in the extension for 85 and then go back to using the standard API in 86.

Flags: needinfo?(htwyford)

Comment on attachment 9197152 [details]
Bug 1686767 - Unhide urlbar.extension.enabled pref and add experimental APIs to set it. r?adw!

approved for 85 rc1

Attachment #9197152 - Flags: approval-mozilla-beta? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: