mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1629044 [wpt PR 22853] - Update interfaces/appmanifest.idl and test, a=testonly
Automatic update from web-platform-tests Update interfaces/appmanifest.idl and test (#22853) The associated IDL test, appmanifest/idlharness.window.js, is removed entirely as the IDL file is now only dictionaries and enums (which cannot be validated by idlharness). Closes https://github.com/web-platform-tests/wpt/pull/22617 -- wpt-commits: 194df1e4cab3851d3c5d08157e65d3ea4ea49416 wpt-pr: 22853
This commit is contained in:
parent
714f9b6c07
commit
ccbdeaed27
@ -1,17 +0,0 @@
|
||||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
// https://w3c.github.io/manifest/
|
||||
|
||||
'use strict';
|
||||
|
||||
idl_test(
|
||||
['appmanifest'],
|
||||
['html', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
Window: ['window'],
|
||||
BeforeInstallPromptEvent: ['new BeforeInstallPromptEvent("type")'],
|
||||
});
|
||||
}
|
||||
);
|
@ -3,26 +3,6 @@
|
||||
// (https://github.com/tidoust/reffy-reports)
|
||||
// Source: Web App Manifest (https://w3c.github.io/manifest/)
|
||||
|
||||
[Exposed=Window]
|
||||
interface BeforeInstallPromptEvent : Event {
|
||||
constructor(DOMString type, optional EventInit eventInitDict = {});
|
||||
Promise<PromptResponseObject> prompt();
|
||||
};
|
||||
|
||||
dictionary PromptResponseObject {
|
||||
AppBannerPromptOutcome userChoice;
|
||||
};
|
||||
|
||||
enum AppBannerPromptOutcome {
|
||||
"accepted",
|
||||
"dismissed"
|
||||
};
|
||||
|
||||
partial interface Window {
|
||||
attribute EventHandler onappinstalled;
|
||||
attribute EventHandler onbeforeinstallprompt;
|
||||
};
|
||||
|
||||
dictionary WebAppManifest {
|
||||
TextDirectionType dir = "auto";
|
||||
DOMString lang;
|
||||
|
Loading…
Reference in New Issue
Block a user