Closed
Bug 1513449
Opened 7 years ago
Closed 7 years ago
Port bug 1415483 - changes to reject-importGlobalProperties rule
Categories
(Thunderbird :: General, task)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 66.0
People
(Reporter: darktrojan, Assigned: darktrojan)
Details
Attachments
(1 file, 2 obsolete files)
|
9.68 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•7 years ago
|
||
My m-c tree isn't up-to-date and I don't want to update it soon, so please check this passes.
Attachment #9030635 -
Flags: review?(jorgk)
Comment 2•7 years ago
|
||
Here was one more. Why does need to be taken out? I don't see them in the M-C changeset:
https://hg.mozilla.org/mozilla-central/rev/2d59d8c885a3
Also, why this?
-this.EXPORTED_SYMBOLS = ["MailInstrumentation"];
-
Doesn't anybody use that?
Comment 3•7 years ago
|
||
OK, put this.EXPORTED_SYMBOLS = ["MailInstrumentation"]; back.
Attachment #9030635 -
Attachment is obsolete: true
Attachment #9030641 -
Attachment is obsolete: true
Attachment #9030635 -
Flags: review?(jorgk)
Attachment #9030643 -
Flags: review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/999ba6d634bb
Port bug 1415483: changes to reject-importGlobalProperties rule. r=jorgk DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 66.0
Comment 5•7 years ago
|
||
This was build on the same revision as the previous M-C push, so it's clear that this caused the following test failures:
TEST-UNEXPECTED-FAIL | comm/mail/components/extensions/test/xpcshell/test_ext_cloudFile.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | comm/mail/components/extensions/test/xpcshell/test_ext_cloudFile.js | - 2153066778 == 0
TEST-UNEXPECTED-FAIL | comm/mail/components/extensions/test/xpcshell/test_ext_cloudFile.js | - A promise chain failed to handle a rejection: [Exception... "Abort" nsresult: "0x80004004 (NS_ERROR_ABORT)" location: "JS frame :: Z:\\task_1544611658\\build\\tests\\xpcshell\\head.js :: _abort_failed_test :: line 757" data: no] - stack: _abort_failed_test@Z:\\task_1544611658\\build\\tests\\xpcshell\\head.js:757:9
TEST-UNEXPECTED-FAIL | comm/mail/components/extensions/test/xpcshell/test_ext_cloudFile.js | - Extension left running at test shutdown - "running" == "unloaded"
Let's see what happens if we put it back:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=1ba1035311fb6f245d405d72231aff8d5fadf48e
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/9113e787783c
Restore |Cu.importGlobalProperties([File, FileReader]);| in ext-cloudFile.js. rs=bustage-fix
| Assignee | ||
Comment 7•7 years ago
|
||
I saw this bit last night and I don't understand why. Have you any insight, Mark?
Flags: needinfo?(standard8)
Comment 8•7 years ago
|
||
The webidl interfaces are now imported into jsm scope - as well as the window scope which is why we don't need most of these calls now. The content process still needs these calls so we've had to whitelist those in a few places (unfortunately scope detection is hard to do correctly).
My best guess is that something is being loaded in the content process and still needs one of the importGlobalProperties calls. I'm a bit surprised by ext-cloudFile.js as it seems to be in the parent process, but there could be sandboxing or something going on with that extension file.
Hopefully at some stage we'll be able to get rid of all the calls completely, but we'll have to wait and see on the next steps.
Flags: needinfo?(standard8)
Updated•6 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•