Port bug 1679688 to Thunderbird - make host permissions grant access to privileged parts of the tabs API
Categories
(Thunderbird :: Upstream Synchronization, task, P1)
Tracking
(thunderbird_esr78 unaffected, thunderbird86 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
thunderbird86 | --- | fixed |
People
(Reporter: mkmelin, Assigned: TbSync)
References
Details
Attachments
(1 file, 2 obsolete files)
1.93 KB,
patch
|
darktrojan
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
Pretty sure this is what's causing all the orange WX tests.
Reporter | ||
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 2•2 years ago
•
|
||
Multiple things happen here.
- This change in ext-tabs-base.js is causing our mailTabs.query() function to return empty, causing almost all of our tests to fail.
https://hg.mozilla.org/mozilla-central/diff/a5b3fa068d5ee122dac27298d7da7d7231d3db49/toolkit/components/extensions/parent/ext-tabs-base.js#l1.67
We need to add title: null
to here:
https://searchfox.org/comm-central/source/mail/components/extensions/parent/ext-mailTabs.js#169
- The new get matchesHostPermission() function fails when checking our
editor#content-frame
tabs and our address book.
https://searchfox.org/mozilla-central/source/toolkit/components/extensions/parent/ext-tabs-base.js#203
When debugging and checking the value for this.browser.currentURI.spec
I get about:blank?compose
, checking this._url
returns undefined
, which I do not understand, as it is defined a few lines below as:
https://searchfox.org/mozilla-central/source/toolkit/components/extensions/parent/ext-tabs-base.js#221-223
Replacing this._url
by this.browser.currentURI.spec
fixes these errors for the editor tabs, but not for the address book, as this.browser
is not defined. To fix this I just return false
in my debug patch, if the function fails for any reason.
Assignee | ||
Comment 4•2 years ago
•
|
||
This is my debug patch for M-C to get our tests working again.
To fix that in C-C we need to make sure all our tabs have a browser
with a currentURI
defined. This is currently not the case for our address book (and maybe more).
Furthermore, we must ensure, that calls to this._url
properly returns the URL. This currently fails mysteriously for editor#content-frame
, even though this.browser.currentURI.spec
(which is this._url
) returns something useful (about:blank?compose
).
Assignee | ||
Comment 5•2 years ago
|
||
Should we file a patch at m-c which failsafes matchesHostPermission()
and maybe all calls which use this.browser
, or should we fix that in c-c?
To fix that in C-C we need to make sure all our tabs have a
browser
with acurrentURI
defined. This is currently not the case for our address book (and maybe more).
This problem has been mentioned numerous times without resolution. For example, see Bug 1649035 and Bug 1680587.
Assignee | ||
Comment 7•2 years ago
|
||
Thanks for the tip, Geoff!
Comment 8•2 years ago
|
||
Comment on attachment 9199112 [details] [diff] [review]
bug1688476_fix_mailTabs.query_and_TabmailTab.TabmailTab.matchesHostPermission.patch
The comment should have a .
and one fewer *
at the end, but I'll do it when I land this shortly.
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0115f45d6db7
Fix mailTabs.query() and Tab.matchesHostPermission(). r=darktrojan
Updated•2 years ago
|
Comment 10•2 years ago
|
||
Comment on attachment 9199112 [details] [diff] [review]
bug1688476_fix_mailTabs.query_and_TabmailTab.TabmailTab.matchesHostPermission.patch
[Approval Request Comment]
Per Geoff, this will fix errors seen on early builds of what will be 86.0b1.
Comment 11•2 years ago
|
||
Comment on attachment 9199112 [details] [diff] [review]
bug1688476_fix_mailTabs.query_and_TabmailTab.TabmailTab.matchesHostPermission.patch
[Triage Comment]
definitely approved for beta :)
Comment hidden (Intermittent Failures Robot) |
Comment 13•2 years ago
|
||
uplift |
Comment hidden (Intermittent Failures Robot) |
Description
•