Open Bug 1801326 Opened 2 years ago Updated 2 years ago

"webNavigation.onErrorOccurred" fires with error: "Error code 2152398850" when navigating to HTTP page

Categories

(WebExtensions :: Request Handling, defect, P5)

Firefox 108
defect

Tracking

(firefox107 affected, firefox108 affected, firefox109 affected)

Tracking Status
firefox107 --- affected
firefox108 --- affected
firefox109 --- affected

People

(Reporter: juraj.masiar, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0

Steps to reproduce:

  1. open any extension page with "webRequest" permission, for example dashboard of uBlock
  2. open console and execute:
browser.webNavigation.onErrorOccurred.addListener(console.error);
browser.tabs.create({url: 'http://github.com', active: false});

Actual results:

Error is printed:

Object { url: "http://github.com/", timeStamp: 1668785004405, error: "Error code 2152398850", frameId: 0, parentFrameId: -1, tabId: 35, windowId: 145 }

Expected results:

There should be no error.
In Chrome there is no error.
When you use "https" instead of "http" there is also no error?
Also, what is "Error code 2152398850"?

Hello,

I reproduced the issue on the latest Nightly (109.0a1/20221120214001), Beta (108.0b4/20221120185746) and Release (107.0/20221110173214) under Windows 10 x64 and Ubuntu 16.04 LTS.

Performing the provided STR, logs the mentioned error to console. For further details, see the attached screenshot.

Also, as mentioned in the report, using “https” instead of “http” will not log the error to console.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached image 2022-11-21_09h33_22.png

This is probably related to HSTS, which cancels any http request if the site has HSTS enabled. It shouldn't impact anything as you'll probably get the proper webNavigation events from the https load, but we could probably throw a better error here.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security

Severity: -- → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: