|
8802 | 8802 | } |
8803 | 8803 | ] |
8804 | 8804 | }, |
| 8805 | + { |
| 8806 | + "name": "WebDriver BiDi file dialog opened", |
| 8807 | + "href": "https://www.w3.org/TR/webdriver-bidi/#webdriver-bidi-file-dialog-opened", |
| 8808 | + "html": "The <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#event-remote-end-event-trigger\" id=\"ref-for-event-remote-end-event-trigger②③\">remote end event trigger</a> is the <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-export=\"\" id=\"webdriver-bidi-file-dialog-opened\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">WebDriver BiDi file dialog opened</dfn> steps, given <var>element</var> and optionally <var>file picker options</var> (default: null):", |
| 8809 | + "rationale": ".algorithm", |
| 8810 | + "steps": [ |
| 8811 | + { |
| 8812 | + "html": "<p>Let <var>navigable</var> be the <var>element</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node-document\" id=\"ref-for-concept-node-document②\">node document</a>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#navigables\" id=\"ref-for-navigables②①\">navigable</a>.</p>" |
| 8813 | + }, |
| 8814 | + { |
| 8815 | + "html": "<p>Let <var>navigable id</var> be <var>navigable</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#navigable-id\" id=\"ref-for-navigable-id②⑤\">navigable id</a>.</p>" |
| 8816 | + }, |
| 8817 | + { |
| 8818 | + "html": "<p>Let <var>multiple</var> be <code>false</code>.</p>" |
| 8819 | + }, |
| 8820 | + { |
| 8821 | + "html": "<p>If <var>element</var> is not null and <var>element</var>’s <code><a data-link-type=\"element-sub\" href=\"https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple\" id=\"ref-for-attr-input-multiple①\">multiple</a></code> attribute is set,\n set <var>multiple</var> to <code>true</code>.</p>" |
| 8822 | + }, |
| 8823 | + { |
| 8824 | + "html": "If <var>file picker options</var> is not null:", |
| 8825 | + "rationale": "if", |
| 8826 | + "steps": [ |
| 8827 | + { |
| 8828 | + "html": "<p>If <var>file picker options</var>[\"<code>multiple</code>\"] is true, set <var>multiple</var> to <code>true</code>.</p>" |
| 8829 | + } |
| 8830 | + ] |
| 8831 | + }, |
| 8832 | + { |
| 8833 | + "html": "<p>Let <var>related navigables</var> be a <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-set\" id=\"ref-for-ordered-set⑥⓪\">set</a> containing <var>navigable</var>.</p>" |
| 8834 | + }, |
| 8835 | + { |
| 8836 | + "html": "For each <var>session</var> in the <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#set-of-sessions-for-which-an-event-is-enabled\" id=\"ref-for-set-of-sessions-for-which-an-event-is-enabled②①\">set of sessions for which an event is enabled</a> given\n \"<code>input.fileDialogOpened</code>\" and <var>related navigables</var>:", |
| 8837 | + "rationale": "let", |
| 8838 | + "steps": [ |
| 8839 | + { |
| 8840 | + "html": "<p>Let <var>params</var> be a <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map①④④\">map</a> matching the <code>input.FileDialogInfo</code> production with the <code>context</code> field set to <var>navigable id</var> and <code>multiple</code> field set to <var>multiple</var>.</p>" |
| 8841 | + }, |
| 8842 | + { |
| 8843 | + "html": "If <var>element</var> is not null:", |
| 8844 | + "rationale": "let", |
| 8845 | + "steps": [ |
| 8846 | + { |
| 8847 | + "html": "<p>Let <var>shared id</var> be <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#get-shared-id-for-a-node\" id=\"ref-for-get-shared-id-for-a-node①\">get shared id for a node</a> with <var>element</var> and <var>session</var>.</p>" |
| 8848 | + }, |
| 8849 | + { |
| 8850 | + "html": "<p>Set <var>params</var>[\"<code>element</code>\"] to <var>shared id</var>.</p>" |
| 8851 | + } |
| 8852 | + ] |
| 8853 | + }, |
| 8854 | + { |
| 8855 | + "html": "<p>Let <var>body</var> be a <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map①④⑤\">map</a> matching the <code>input.fileDialogOpened</code> production, with the <code>params</code> field set to <var>params</var>.</p>" |
| 8856 | + }, |
| 8857 | + { |
| 8858 | + "html": "<p><a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#emit-an-event\" id=\"ref-for-emit-an-event②⑥\">Emit an event</a> with <var>session</var> and <var>body</var>.</p>" |
| 8859 | + } |
| 8860 | + ] |
| 8861 | + }, |
| 8862 | + { |
| 8863 | + "html": "<p>Let <var>dismissed</var> be false.</p>" |
| 8864 | + }, |
| 8865 | + { |
| 8866 | + "html": "For each <var>session</var> in <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#active-bidi-sessions\" id=\"ref-for-active-bidi-sessions④\">active BiDi sessions</a>:", |
| 8867 | + "rationale": "let", |
| 8868 | + "steps": [ |
| 8869 | + { |
| 8870 | + "html": "<p>Let <var>user prompt handler</var> be <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://w3c.github.io/webdriver/#dfn-user-prompt-handler\" id=\"ref-for-dfn-user-prompt-handler\">user prompt handler</a>.</p>" |
| 8871 | + }, |
| 8872 | + { |
| 8873 | + "html": "<p>If <var>user prompt handler</var> is not null:</p>" |
| 8874 | + }, |
| 8875 | + { |
| 8876 | + "html": "<p>Assert <var>user prompt handler</var> is a <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map①④⑥\">map</a>.</p>" |
| 8877 | + }, |
| 8878 | + { |
| 8879 | + "html": "If <var>user prompt handler</var> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists⑥⑨\">contains</a> \"<code>file</code>\":", |
| 8880 | + "rationale": "if", |
| 8881 | + "steps": [ |
| 8882 | + { |
| 8883 | + "html": "<p>If <var>user prompt handler</var>[\"<code>file</code>\"] is not equal to\n \"<code>ignore</code>\", set <var>dismissed</var> to true.</p>" |
| 8884 | + } |
| 8885 | + ] |
| 8886 | + }, |
| 8887 | + { |
| 8888 | + "html": "<p>Otherwise if <var>user prompt handler</var> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists⑦⓪\">contains</a> \"<code>default</code>\" and <var>user prompt handler</var>[\"<code>default</code>\"] is not equal to\n \"<code>ignore</code>\", set <var>dismissed</var> to true.</p>" |
| 8889 | + } |
| 8890 | + ] |
| 8891 | + }, |
| 8892 | + { |
| 8893 | + "html": "<p>Return <var>dismissed</var>.</p>" |
| 8894 | + } |
| 8895 | + ] |
| 8896 | + }, |
8805 | 8897 | { |
8806 | 8898 | "name": "extract a zip archive", |
8807 | 8899 | "href": "https://www.w3.org/TR/webdriver-bidi/#extract-a-zip-archive", |
|
8913 | 9005 | "html": "<p>Perform implementation defined steps to install a web extension from <var>extension directory entry</var>. If this fails, return <a data-link-type=\"dfn\" href=\"https://w3c.github.io/webdriver/#errors\" id=\"ref-for-errors①①③\">error</a> with <a data-link-type=\"dfn\" href=\"https://w3c.github.io/webdriver/#dfn-error-code\" id=\"ref-for-dfn-error-code①⓪⑥\">error code</a> <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#errors-invalid-web-extension\" id=\"ref-for-errors-invalid-web-extension②\">invalid web extension</a>. Otherwise let <var>extension id</var> be the unique identifier of the newly installed web extension.</p>" |
8914 | 9006 | }, |
8915 | 9007 | { |
8916 | | - "html": "<p>Let <var>result</var> be a <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map①④④\">map</a> matching the <code>webExtension.InstallResult</code> production with the <code>extension</code> field set to <var>extension id</var>.</p>" |
| 9008 | + "html": "<p>Let <var>result</var> be a <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map①④⑦\">map</a> matching the <code>webExtension.InstallResult</code> production with the <code>extension</code> field set to <var>extension id</var>.</p>" |
8917 | 9009 | }, |
8918 | 9010 | { |
8919 | 9011 | "html": "<p>Return <a data-link-type=\"dfn\" href=\"https://w3c.github.io/webdriver/#dfn-success\" id=\"ref-for-dfn-success⑧⑥\">success</a> with data <var>result</var>.</p>" |
|
8955 | 9047 | "rationale": "if", |
8956 | 9048 | "steps": [ |
8957 | 9049 | { |
8958 | | - "html": "<p>If <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#device-pixel-ratio-overrides\" id=\"ref-for-device-pixel-ratio-overrides②\">device pixel ratio overrides</a> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists⑥⑨\">contains</a> <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigable\" id=\"ref-for-window-navigable③\">navigable</a>, return <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#device-pixel-ratio-overrides\" id=\"ref-for-device-pixel-ratio-overrides③\">device pixel ratio overrides</a>[<var>window</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigable\" id=\"ref-for-window-navigable④\">navigable</a>].</p>" |
| 9050 | + "html": "<p>If <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#device-pixel-ratio-overrides\" id=\"ref-for-device-pixel-ratio-overrides②\">device pixel ratio overrides</a> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists⑦①\">contains</a> <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigable\" id=\"ref-for-window-navigable③\">navigable</a>, return <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webdriver-bidi/#device-pixel-ratio-overrides\" id=\"ref-for-device-pixel-ratio-overrides③\">device pixel ratio overrides</a>[<var>window</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigable\" id=\"ref-for-window-navigable④\">navigable</a>].</p>" |
8959 | 9051 | } |
8960 | 9052 | ] |
8961 | 9053 | } |
|
0 commit comments