Files
firefox/toolkit/mozapps/extensions/test/browser/webapi_checkframed.html
T
Dave Townsend 1530896215 Bug 1245571: Add a window.navigator.mozAddonManager object that can only be accessed by AMO. r=bz
Since we want to add a few APIs that AMO can use to query and manipulate the
user's add-ons we want to expose a custom API. This implements the webidl and
a stub implementation in JavaScript. We use the webidl functions for controlling
access to the API, only the AMO production domains (and some test domains when
testing is enabled) can access it and only when retrieved securely and not in
an inner frame of a page that shouldn't have the API.

MozReview-Commit-ID: 3HUUrduuHwf
2016-02-19 16:49:30 -08:00

8 lines
193 B
HTML

<!DOCTYPE html>
<html>
<body>
<iframe id="frame" height="200" width="200" src="https://example.com/browser/toolkit/mozapps/extensions/test/browser/webapi_checkavailable.html">
</body>
</html>