Closed Bug 1659866 Opened 4 years ago Closed 4 years ago

Inspector doesn't show any rules

Categories

(DevTools :: about:debugging, defect, P2)

defect

Tracking

(firefox-esr68 unaffected, firefox-esr78 unaffected, firefox80 unaffected, firefox81+ fixed, firefox82 unaffected)

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 + fixed
firefox82 --- unaffected

People

(Reporter: karlcow, Assigned: jdescottes)

References

()

Details

(Keywords: regression)

Attachments

(6 files, 1 obsolete file)

Setup:

  • Desktop: Firefox Nightly 81.0a1 (2020-08-18) (64-bit) macOS 10.15.6 (19G2021)
  • Mobile: Firefox Nightly 81.0a1-20200813092915 Android 10. Pixel 2
  1. Mobile: Go to https://www.usedcarsni.com/cars (or any websites)
  2. Desktop: Go to about:debugging
  3. Open the remote debugger context
  4. Click on inspector
  5. select a node

Expected:
Have the CSS rules displayed in the center column

Actual:
All CSS rules are hidden.

Note that I'm seeing a lot of

Error: Protocol error (NS_ERROR_UNEXPECTED): Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] from: server0.conn1.child40/pagestyle26 (resource://devtools/server/actors/compatibility.js:104:0)

in the browser console.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

I spotted one backward compatibility issue, but that's probably not what you are experiencing here. Mine also makes the markup view go blank. I will look into the compatibility actor report from comment 1.

Severity: -- → S2
Priority: -- → P2

Ok pref("devtools.inspector.compatibility.target-browsers", ""); should be moved to https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js otherwise it will be undefined on Fenix

Attachment #9170973 - Attachment is obsolete: true
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be6efbcfec5d
Add a setter for isTopLevelDocument on Node Front for backward compatibility r=daisuke
https://hg.mozilla.org/integration/autoland/rev/c9645c284601
Move server-side devtools pref for Compatibility panel to modules/libpref/init/all.js r=daisuke
https://hg.mozilla.org/integration/autoland/rev/103c9f61a101
Set a default value for target-browsers from the client r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Julian,

This is still busted for me as of today.
Is it the same for you?

macOS 10.15.6 (19G2021)
desktop Firefox Nightly 82.0a1 (2020-08-25) (64-bit)

Android 10
mobile Firefox Nightly 200825 06:07 (Build #2015759987)
81.0a1-20200820093209

just to stress that it is quite important for the daily debugging work on diagnosing issues for Firefox (for the webcompat team).

Thanks for any progress, and tell me how I can help you with better information.

Flags: needinfo?(jdescottes)
Attached image still broken

[Tracking Requested - why for this release]: Remote debugging inspector is broken. It would nice to not ship this to release?

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
Target Milestone: 81 Branch → ---

While testing this morning I spotted another regression caused by Bug 1660266, which I am fixing via Bug 1662058 on the server (will file another Bug to add a workaround on the client).

To workaround this, you can set a default value for the missing pref.
Run Services.prefs.setBoolPref("devtools.overflow.debugging.enabled", false) in the console of the "Multiprocess toolbox" for Fenix.

After setting a default value, the inspector works for me.
Firefox desktop: latest central
Firefox mobile: Nightly 200829 06:05

Note that the Fenix build mentioned in the previous comments (81.0a1-20200820093209) does not include the fix that initially landed here, it is in the next one: https://ftp.mozilla.org/pub/firefox/nightly/2020/08/2020-08-20-21-21-07-mozilla-central/ . This means it didn't include the server side fix, which can explain why it didn't work for you? I am a bit surprised that the client side workaround in https://hg.mozilla.org/mozilla-central/rev/103c9f61a101 didn't properly create the preference.

Can you please test again?

Flags: needinfo?(miket)
Flags: needinfo?(kdubost)
Flags: needinfo?(jdescottes)

OK, yeah. That did work for me:

  1. in Firefox Nightly, open about:debugging and connect to the latest Fenix Nightly build.
  2. Select the device on the left, then go to Processes at the bottom and click Inspect from the Multiprocess Toolbox
  3. Run Services.prefs.setBoolPref("devtools.overflow.debugging.enabled", false) in the console of the Multiprocess Toolbox (chrome://geckoview/content/geckoview.xhtml should be the selected frame/context/whatever, if not select it from the icon next to the meatballs icon)
  4. Disconnect device from top of about:debugging (Disconnect button)
  5. Hit Connect again from about:debugging

At this point, the Inspector works as expected.

Flags: needinfo?(miket)

Mike Steps worked for me too with

Mobile Nightly 200831 06:01
and Desktop Nightly 82.0a1 (2020-08-30) (64-bit)

Flags: needinfo?(kdubost)

Thanks for testing!

The issue with devtools.overflow.debugging.enabled is tracked by Bug 1662058, so I think we can close this.
I am also working on a more generic client side workaround with Bug 1662067.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED

Bug 1662058 was a new regression in 82, but this bug also affects 81? Is there something we can do to fix this on Beta still? Or are we saying that this bug was tracking two different problems - one fixed by the original patches and one subsequent regression fixed by bug 1662058?

Flags: needinfo?(jdescottes)
Target Milestone: --- → 82 Branch

Thank you very much Julian for helping to get this working again. :)

(In reply to Ryan VanderMeulen [:RyanVM] from comment #17)

Bug 1662058 was a new regression in 82, but this bug also affects 81? Is there something we can do to fix this on Beta still? Or are we saying that this bug was tracking two different problems - one fixed by the original patches and one subsequent regression fixed by bug 1662058?

Normally the initial fix that landed here in 81 (https://hg.mozilla.org/mozilla-central/rev/c9645c284601) is sufficient to fix the issue.
There is some delay before Fenix incorporates changes so when Mike & Karl tested again, Fenix 81 didn't have the fix yet. But the "final" Fenix 81 contains the fix and doesn't require any new patch.

I am trying to update the flags in the bug accordingly.

Flags: needinfo?(jdescottes)
Target Milestone: 82 Branch → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: