TypeError: this.chromeUtilsWindow.openUILinkIn is not a function hudservice.js:425:5 - when clicking [Learn More] in error console
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr6869+ fixed, thunderbird70 fixed, thunderbird71 fixed)
People
(Reporter: musiquegraeme, Assigned: aceman)
References
Details
(Keywords: regression)
Attachments
(2 files)
|
901 bytes,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
|
948 bytes,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
Comment 1•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 9•7 years ago
|
||
Gosh, this is back.
Please see https://bugzilla.mozilla.org/show_bug.cgi?id=1571645
| Assignee | ||
Comment 10•7 years ago
|
||
Long story:
The click goes through
https://searchfox.org/mozilla-central/rev/7088fc958db5935eba24b413b1f16d6ab7bd13ea/devtools/client/webconsole/webconsole.js#155-163
then
https://searchfox.org/mozilla-central/rev/7088fc958db5935eba24b413b1f16d6ab7bd13ea/devtools/client/shared/link.js#37-43
which calls _getTopWindow:
https://searchfox.org/mozilla-central/rev/7088fc958db5935eba24b413b1f16d6ab7bd13ea/devtools/client/shared/link.js#14
This one checks for openTrustedLinkIn() function which we don't have so it returns null and then openDocLink cleanly exists without doing anything.
Notice openDocLink does not actually need openTrustedLinkIn()...
Anyway, let's define the function so that we do not hit similar surprises in the future when something actually uses it.
We call it from c-c at https://searchfox.org/comm-central/rev/fcf15ecffc1bbd7670336702cd370f1625706a04/mail/components/customizableui/CustomizeMode.jsm#231. I wonder if that worked or works now.
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/89a77f62b2dd
define openTrustedLinkIn() in contentAreaClick.js as it is used in the Error console to open [Learn more] links. r=jorgk
Comment 13•7 years ago
|
||
Paul, we implemented openTrustedLinkIn() in this bug which was missing. As Aceman pointed out in comment #10, this is used here:
https://searchfox.org/comm-central/search?q=openTrustedLinkIn&case=true®exp=false&path=mail
Could you please check which consequences that has for mail/components/customizableui/CustomizeMode.jsm and file a follow-up bug if more needs to be done.
Updated•7 years ago
|
Comment 14•7 years ago
•
|
||
TB 68.1 ESR:
https://hg.mozilla.org/releases/comm--esr68/rev/e73026ad5377e648a5bd489aededa47cda2c3eb1
Comment 15•7 years ago
•
|
||
Aceman, that is working fine on trunk, but on TB 68.1 nothing happens (EDIT) when you click a [Learn More] link. Can you get a build from here and look at it again please:
https://treeherder.mozilla.org/#/jobs?repo=comm-esr68&revision=eee024f0004838f21b0fbee315d56375a0607875
You can use the "T/D unpack omni.ja " method to mess around with it.
Comment 16•7 years ago
|
||
Damn, this doesn't work in TB 70 beta from automation either, but it worked in a local build of TB 70 when I tested it.
We've seen cases like this before where things in devtools behave differently when run from a local build.
Comment 17•7 years ago
|
||
Similar to bug 1454041 comment #2.
| Assignee | ||
Comment 18•7 years ago
•
|
||
I determined the file https://searchfox.org/comm-central/source/mail/components/devtools/devtools-loader.js is missing from the omni.ja file of a packaged TB distribution (official releases from server).
When I added the file, the click started working.
The file was added in bug 1279834. It exists when building locally, but isn't included in the packaged application version. I also tested 'mach package' locally which resulted in the same problem.
There are a few other files similarly missing in the omni.ja.
| Assignee | ||
Comment 20•7 years ago
|
||
I'm sure it is intended to be packaged/shipped, it is in moz.build in the EXTRA_COMPONENTS variable.
It is built and lands in the /components folder when built locally, but then for some reason isn't included in the package (omni.ja). 50 other files in EXTRA_COMPONENTS are packaged. That is the mystery here.
| Assignee | ||
Comment 21•7 years ago
|
||
| Assignee | ||
Comment 22•7 years ago
|
||
Comparing objdir/dist/bin/components with the omni.ja/components folders, there is also odnoklassniki.js file missing in omni.ja. That is for the chat protocol. Needs decision from the chat peers whether that one also needs to be added (is intended to be used in official build).
| Assignee | ||
Comment 23•7 years ago
|
||
(In reply to :aceman from comment #21)
I think I found it:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=45107b46a4ee50a81714cb80b0ce603b49869c7c
Bingo, the package from that try build (e.g. https://queue.taskcluster.net/v1/task/bZsAS5wtRhmn61LXDh19Ww/runs/0/artifacts/public/build/target.tar.bz2) does containt the devtools-loader.js now (and the components.manifest file contains the lines from the devtools-loader.manifest), compared to the package from the previous push.
I also downloaded the old and new package (with patch) and verified only the new one opens the [Learn more] link in the current browser.
| Assignee | ||
Comment 24•7 years ago
|
||
Description of the patch in previous comments.
Comment 25•7 years ago
|
||
This is getting confusing. The only NI here should be for Paul in comment #13. Please file a new bug for the chat issue you discovered.
Comment 26•7 years ago
|
||
Updated•7 years ago
|
Comment 27•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/5e1353ce04ca
Package missing components/devtools-loader.*. r=jorgk
Comment 28•7 years ago
|
||
TB 70 beta 1:
https://hg.mozilla.org/releases/comm-beta/rev/e8ecfa4e5543844423964cf760dcedb616e6b6e0
The packaging part landed on TB 71, hence it needed backport.
| Assignee | ||
Comment 29•7 years ago
|
||
Also for 68 please.
Comment 30•7 years ago
|
||
Sure, the flag is already set.
Comment 32•7 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #13)
Could you please check which consequences that has for mail/components/customizableui/CustomizeMode.jsm and file a follow-up bug if more needs to be done.
So the code where this is used in CustomizeMode.jsm is not something we are using right now, so there's nothing else to do at this point. If someday we start using this code for customizing toolbars, etc. then it could come into play, need a closer look, etc.
Comment 33•7 years ago
|
||
TB 68.1 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/9818787d167f997f20f636e11829eeae61cd4a11
Packaging follow-up.
Description
•