Closed Bug 1635677 Opened 5 years ago Closed 5 years ago

ReferenceError: Components is not defined

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(firefox-esr68 unaffected, firefox75 unaffected, firefox76 unaffected, firefox77 unaffected, firefox78 fixed)

RESOLVED FIXED
Firefox 78
Tracking Status
firefox-esr68 --- unaffected
firefox75 --- unaffected
firefox76 --- unaffected
firefox77 --- unaffected
firefox78 --- fixed

People

(Reporter: Honza, Assigned: Kwan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. Load https://edition.cnn.com/
  2. Open DevTools and select the Network panel
  3. Refresh the page
  4. Check out the Browser Console for bunch of errors:

ReferenceError: Components is not defined network-response-listener.js:86:5

Honza

This looks like a recent regression.

It looks like the exception happens when query for nsJSID interface is happening.

Some analysis/questions:

  1. Should we just define Components or throw new Error("Not supported interface"); or throw Cr.NS_ERROR_NO_INTERFACE;?
  2. Could we finally remove the following piece of code introduced in bug 1309523?
    https://searchfox.org/mozilla-central/rev/7908ce29657cfd623993046bd8e38664e1c0b28e/devtools/server/actors/network-monitor/network-response-listener.js#56-60
    The comment says that it's for the non-e10s case only.

In any case having the regression window would help here.

Honza

Has STR: --- → yes

:Honza, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

My fault, apologies.

Regressed by: 1536556
Has Regression Range: --- → yes

This was a regression from automated changes in bug 1536556
6936e9640d4e41b2c470a022a2e7066b72b7d906

Assignee: nobody → moz-ian
Status: NEW → ASSIGNED
Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b06710fbea63 Import Components in devtools so Components.Exceptions can be thrown. r=Honza

Set release status flags based on info from the regressing bug 1536556

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: