Port bug 1486521 - compose/src/nsMsgComposeService.cpp:287:5: error: functions marked as MOZ_CAN_RUN_SCRIPT can only be called from functions also marked as MOZ_CAN_RUN_SCRIPT
Categories
(MailNews Core :: General, task)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(2 files, 1 obsolete file)
1.44 KB,
patch
|
Details | Diff | Splinter Review | |
1.49 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
This seems to come from here:
https://hg.mozilla.org/mozilla-central/rev/93c0ed8f3690#l2.17
Assignee | ||
Comment 1•5 years ago
|
||
I'm not sure this can be seen on Windows, here's a try push for Linux:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=9ffbd15301c34381feab64ba3cd37b58be9000fe
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/4c5966ac10c4
Port bug 1486521: Add MOZ_CAN_RUN_SCRIPT to two functions in nsMsgComposeService.cpp. rs=bustage-fix
Comment 4•5 years ago
|
||
Comment on attachment 9036467 [details] [diff] [review]
1520040-MOZ_CAN_RUN_SCRIPT.patch (v2)
I think you're doing this wrong. "Note that MOZ_CAN_RUN_SCRIPT only be applied to function declarations, not definitions."
Comment 5•5 years ago
|
||
Comment on attachment 9036467 [details] [diff] [review] 1520040-MOZ_CAN_RUN_SCRIPT.patch (v2) See the previous comment. I could be wrong, but that's how I read it.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
OK, I'll shift it around. nsMsgComposeService::OpenComposeWindow()
is generated from the IDL.
Assignee | ||
Comment 7•5 years ago
|
||
Comment on attachment 9036467 [details] [diff] [review] 1520040-MOZ_CAN_RUN_SCRIPT.patch (v2) r- is not so helpful since it already landed and I won't back it out (since it would bust two platforms).
Assignee | ||
Comment 8•5 years ago
|
||
OK, switched this over to MOZ_CAN_RUN_SCRIPT_FOR_DEFINITION. Since one function is generated from the IDL I saw no point to put it onto the declaration for the the other one (to avoid searching around).
We'd better make sure it compiles before landing this:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=9202560ba7e27b16fdbd0653b4c6a33365d55364
You might want to use it for the next M-C merge.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/a55410ab6adb
Follow-up: use MOZ_CAN_RUN_SCRIPT_FOR_DEFINITION for function definitions. r=me
Assignee | ||
Comment 10•5 years ago
|
||
Sorry, the build was busted due to bug 1520944, so I used this to trigger a new one. I hope you agree with the fix.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•