TypeError: can't access property "isPrivate", queryContext is undefined
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox124 | --- | wontfix |
| firefox125 | --- | wontfix |
| firefox126 | --- | fixed |
People
(Reporter: cbaica, Assigned: daleharvey)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [sng-scrubbed][search-regression])
Attachments
(3 files)
Found in
- Fx125.0b1
Affected versions
- Fx 126.0a1
- Fx 125.0b1
- Fx 124.0RC
Affected platforms
- Windows
- Ubuntu
- macOS
Steps to reproduce
- Launch Firefox and open the browser console.
- Navigate to any website and copy some text or a link.
- Open a new tab and right click the address bar.
- Choose the 'Paste & Go' option.
Expected result
- User is taken to the appropriate page(either SERP or website) without any errors.
Actual result
- The following error is displayed in the console:
TypeError: can't access property "isPrivate", queryContext is undefined
onEngagement resource:///modules/UrlbarProviderTopSites.sys.mjs:338
tryMethod resource:///modules/UrlbarUtils.sys.mjs:2367
notifyEngagementChange resource:///modules/UrlbarProvidersManager.sys.mjs:351
_internalRecord resource:///modules/UrlbarController.sys.mjs:970
record resource:///modules/UrlbarController.sys.mjs:827
handleNavigation resource:///modules/UrlbarInput.sys.mjs:747
handleCommand resource:///modules/UrlbarInput.sys.mjs:598
_initPasteAndGo resource:///modules/UrlbarInput.sys.mjs:3158
Regression range
- First bad: 2024-01-19
- Last good: 2024-01-18
- Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=2b70f662a79773d519e78f0b8b64723a20b1e788&tochange=743bf7dec6d18c0026d8344a68f43f19b2f9308f
Additional notes
- The error received on beta and RC builds has a slightly different name, but the same files seem to be affected:
TypeError: queryContext is undefined
onEngagement resource:///modules/UrlbarProviderTopSites.sys.mjs:310
tryMethod resource:///modules/UrlbarUtils.sys.mjs:2365
notifyEngagementChange resource:///modules/UrlbarProvidersManager.sys.mjs:351
_internalRecord resource:///modules/UrlbarController.sys.mjs:1026
record resource:///modules/UrlbarController.sys.mjs:840
handleNavigation resource:///modules/UrlbarInput.sys.mjs:747
handleCommand resource:///modules/UrlbarInput.sys.mjs:598
_initPasteAndGo resource:///modules/UrlbarInput.sys.mjs:3093
Comment 1•2 years ago
|
||
:daleharvey, since you are the author of the regressor, bug 1841762, could you take a look?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
Comment 5•2 years ago
•
|
||
The patch landed in nightly and RC is affected.
:daleharvey, is this bug important enough to require an uplift?
- If yes, please nominate the patch for release approval.
- If no, please set
status-firefox125towontfix.
For more information, please visit BugBot documentation.
I can still reproduce this issue on Firefox Nighly 126.0a1(latest nightly build), on macOS/Windows 10/Ubuntu 22 using the same steps as in Comment 0.
| Assignee | ||
Comment 7•2 years ago
|
||
Yeh the impact is low here, no need to uplift
| Reporter | ||
Comment 8•2 years ago
|
||
Re-opening the issue based on the last comment left from QA.
| Assignee | ||
Comment 9•2 years ago
|
||
Updated•2 years ago
|
Comment 10•8 months ago
|
||
I'm still encountering this error, and the patch that hasn't landed seems not to be enough to fix it, from what I can see.
I don't know if it can be helpful, but before finding this bug I investigated a little bit, and I noticed that when opening a new tab, the URL bar is already focused.
Whereas, when re-using the current tab, you will go through this stack trace, which correctly initializes queryContext:
startQuery (moz-src:///browser/components/urlbar/UrlbarController.sys.mjs#125)
startQuery (moz-src:///browser/components/urlbar/UrlbarInput.sys.mjs#1900)
autoOpen (moz-src:///browser/components/urlbar/UrlbarView.sys.mjs#706)
_on_focus (moz-src:///browser/components/urlbar/UrlbarInput.sys.mjs#4538)
handleEvent (moz-src:///browser/components/urlbar/UrlbarInput.sys.mjs#775)
| Assignee | ||
Comment 11•8 months ago
|
||
Yeh thats why I hadnt landed it I noticed it was still possible to reproduce, happy for someone to take it over if anyone wants to, thanks for the investigation that could help
Description
•