Closed Bug 1732011 Opened 2 years ago Closed 2 years ago

Update backgroundtasks example to include EXPORTED_SYMBOLS

Categories

(Toolkit :: Application Update, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

Details

Attachments

(1 file)

While working on bug 1705676 I encountered the following error in the console:

[JavaScript Error: "Error: resource://gre/modules/backgroundtasks/BackgroundTask_purgeHTTPCache.jsm - EXPORTED_SYMBOLS is not an array." {file: "resource://gre/modules/BackgroundTasksManager.jsm" line: 86}]

It was unclear to me why this was happening but after digging through the examples in the tree it became apparent that it's necessary to define the EXPORTED_SYMBOLS variable in the JSM.

We should update the documentation to include this as well.

Priority: -- → P3
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5907bdad7aee
Update backgroundtasks example to include EXPORTED_SYMBOLS r=nalexander DONTBUILD
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.