Closed Bug 1159693 Opened 9 years ago Closed 8 years ago

_globalProperties in browser-test initializes fuel

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mak, Unassigned)

References

Details

I noticed this in mochitest-browser tests

03:54:32 INFO - 969 INFO TEST-INFO | (browser-test.js) | Console message: [JavaScript Error: "DEPRECATION WARNING: FUEL is deprecated, you should use the add-on SDK instead.
03:54:32 INFO - You may find more details about this deprecation at: https://developer.mozilla.org/Add-ons/SDK/
03:54:32 INFO - jar:file:///builds/slave/test/build/application/firefox/browser/omni.ja!/components/fuelApplication.js 1458 Application
03:54:32 INFO - jar:file:///builds/slave/test/build/application/firefox/browser/omni.ja!/components/fuelApplication.js 726 af_ci
03:54:32 INFO - chrome://mochikit/content/browser-test.js 244 Tester_start 

This means fuel is being initialized even if it's not used, at that line in browser-test we have:

this._globalProperties = Object.keys(window);
and indeed this causes the initialization of window.Application that is defined as a JavaScript-global-privileged-property

I'm not sure if there's an easy solution here, apart from removing fuel from the codebase (but it's too early to do that).
Depends on: 1090880
Blocks: 1090880
No longer depends on: 1090880
No longer blocks: 1090880
Depends on: 1090880
FUEL is being removed in bug 1090880, so this is now wontfix.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.