Closed Bug 1313906 Opened 8 years ago Closed 8 years ago

DOM inspector doesn't work any more in Thunderbird

Categories

(Thunderbird :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 53.0

People

(Reporter: jorgk-bmo, Assigned: Paenglab)

References

Details

(Keywords: regression)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1279327 +++

Regression range M-C:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=1561c917ee27&tochange=969c3295d3aa
Flags: needinfo?(alice0775)
Alice, please try this in FF for us. Thanks in advance.
Just starting DOM Inpector I get:
09:39:29.186 XML Parsing Error: no root element found
Location: chrome://global/content/globalOverlay.xul
Line Number 1, Column 1: 1 globalOverlay.xul:1:1

09:39:29.594 TypeError: document.getElementById(...) is null 1 inspector.js:72:5
	InspectorApp_initialize chrome://inspector/content/inspector.js:72:5

You can File->Inspect a Chrome document, but then the "Find a node by clicking on it" icon does not work.
Attached patch noglobal.patchSplinter Review
This is a regression from bug 1312143. I had this patch since then but forgot it. Sorry :(

I hope Ian is the correct reviewer for DOMi.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Flags: needinfo?(alice0775)
Attachment #8805832 - Flags: review?(iann_bugzilla)
Backing out https://hg.mozilla.org/mozilla-central/rev/a1ea2703d9e8 from bug 1203813 locally does NOT fix this issue. So Alice, can you please find the regression here.

On the console I see:
Error getting service: @mozilla.org/inspector/flasher;1, inIFlasher
TypeError: Components.classes[aURL] is undefinedJavaScript error: chrome://inspector/content/inspector.js, line 72: TypeError: document.getElementById(...) is null
Depends on: 1312143
No longer depends on: 1279327
Ignore comment #4, wires crossed with comment #3.
How do you build the DOMi? I added 
  ac_add_options --enable-extensions=default,inspector
to my TB .mozconfig (following: http://asurkov.blogspot.de/2013/02/build-dom-inspector.html) but that didn't build it.
I have ac_add_options --enable-extensions="inspector" and it builds. I think the "default" isn't needed as it works without it here. You could also only monkey patch the file directly in the extension folder of your profile.
Comment on attachment 8805832 [details] [diff] [review]
noglobal.patch

One of the things loading the overlay globalOverlay.xul did was to pull in globalOverlay.js
This seems fine for SeaMonkey as their utilityOverlay.xul loads globalOverlay.js thus dealing with things like cmd_quit, but does Thunderbird load it in some other way?
Flags: needinfo?(richard.marti)
Is the DOM inspector still maintained? Would it be better to stop shipping it altogether now the devtools inspector is included?
Flags: needinfo?(philipp)
It's an add-on for TB. And I like to use it. What do you mean by "stop shipping it" since we don't ship it in the first place. What am I missing?
(In reply to Jorg K (GMT+1) from comment #10)
> It's an add-on for TB. And I like to use it. What do you mean by "stop
> shipping it" since we don't ship it in the first place. What am I missing?

Ah, you're right, my bad. As we pull it with every client.py, I'd completely forgotten it was an addon I had once installed manually ;)
Flags: needinfo?(philipp)
(In reply to Ian Neal from comment #8)
> ... to pull in globalOverlay.js ..., ... does
> Thunderbird load it in some other way?
https://dxr.mozilla.org/comm-central/search?q=globalOverlay.js&redirect=false

We seem to load it left, right and centre. What am I missing?
(In reply to Jorg K (GMT+1) from comment #12)
> (In reply to Ian Neal from comment #8)
> > ... to pull in globalOverlay.js ..., ... does
> > Thunderbird load it in some other way?
> https://dxr.mozilla.org/comm-central/search?q=globalOverlay.js&redirect=false
> 
> We seem to load it left, right and centre. What am I missing?

Just asking whether any dependencies on globalOverlay.js have been checked when using DOMi with TB.
(In reply to Ian Neal from comment #8)
> Comment on attachment 8805832 [details] [diff] [review]
> noglobal.patch
> 
> One of the things loading the overlay globalOverlay.xul did was to pull in
> globalOverlay.js
> This seems fine for SeaMonkey as their utilityOverlay.xul loads
> globalOverlay.js thus dealing with things like cmd_quit, but does
> Thunderbird load it in some other way?

Like Jörg already replied it is loaded on a lot of places. Using DOMi on a daily base it is working for me like before. At least where I am using it.
Flags: needinfo?(richard.marti)
(In reply to aleth [:aleth] from comment #9)
> Is the DOM inspector still maintained? Would it be better to stop shipping
> it altogether now the devtools inspector is included?

I hope not. I like it a lot more than the devtools inspector. The devtools inspector for example is showing too much in DOM tree which makes it hard to find the correct entry and to see the parent/childs etc.
Attachment #8805832 - Flags: review?(iann_bugzilla) → review+
https://hg.mozilla.org/dom-inspector/rev/f18146654a5a21208736e17cd02e3cdd0202827f
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 53.0
I also like DOM Inspector and rely on it daily. But is not working fully for some time, e.g. I can't any longer click on elements to inspect and it is producing errors in the console. It probably needs a new release accommodating the recent changes in m-c.
(In reply to :aceman from comment #17)
> I also like DOM Inspector and rely on it daily. But is not working fully for
> some time, e.g. I can't any longer click on elements to inspect and it is
> producing errors in the console. It probably needs a new release
> accommodating the recent changes in m-c.

Care to file bugs with the error messages? Patches would also be nice.
Flags: needinfo?(acelists)
> Care to file bugs with the error messages? Patches would also be nice.

It seems the current trunk is better, clicking element works and does not reference STEEL.
There is just no release containing these fixes.
Flags: needinfo?(acelists)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: