Open Bug 1886140 Opened 8 months ago Updated 6 months ago

TypeError: can't access property "isPrivate", queryContext is undefined

Categories

(Firefox :: Address Bar, defect, P3)

Desktop
All
defect

Tracking

()

REOPENED
126 Branch
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)

Attached image typeError

Found in

  • Fx125.0b1

Affected versions

  • Fx 126.0a1
  • Fx 125.0b1
  • Fx 124.0RC

Affected platforms

  • Windows
  • Ubuntu
  • macOS

Steps to reproduce

  1. Launch Firefox and open the browser console.
  2. Navigate to any website and copy some text or a link.
  3. Open a new tab and right click the address bar.
  4. 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

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

:daleharvey, since you are the author of the regressor, bug 1841762, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(dharvey)
Has STR: --- → yes
Priority: -- → P3
Whiteboard: [sng-scrubbed][search-regression]
Assignee: nobody → dharvey
Flags: needinfo?(dharvey)
Pushed by dharvey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c59be65c8118 Fix undefined queryContext in paste-and-go. r=adw
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

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-firefox125 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(dharvey)

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.

Yeh the impact is low here, no need to uplift

Flags: needinfo?(dharvey)

Re-opening the issue based on the last comment left from QA.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #9401913 - Attachment description: Bug 1886140 - Ensure queryContext is defined in 'Paste and Go' actions. r=adw → Bug 1886140 - Prevent console errors during 'Paste & Go'. r=adw
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: