From ce83c2bf483739dc5f012e93cbdbd252d7a6861b Mon Sep 17 00:00:00 2001 From: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com> Date: Tue, 29 Oct 2024 06:12:24 +0100 Subject: [PATCH] Update index.md | top and left is supported in Firefox version >= 109 https://phabricator.services.mozilla.com/D73419?id=649918 --- .../mozilla/add-ons/webextensions/api/windows/create/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/windows/create/index.md b/files/en-us/mozilla/add-ons/webextensions/api/windows/create/index.md index 06962dce9a8bdea..833c912cccdb254 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/windows/create/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/windows/create/index.md @@ -49,7 +49,7 @@ let creating = browser.windows.create( - `incognito` {{optional_inline}} - : `boolean`. Whether the new window should be an incognito (private) window. Note that if you specify `incognito` and `tabId`, the ID must refer to a private tab — that is, you can't move a non-private tab to a private window. - `left` {{optional_inline}} - - : `integer`. The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focused window. (Firefox < 109, `left: value` is ignored for popups (BUG 1271047) and workaround is using browser.windows.update(). From Firefox 109, the `left: value` is considered (FIX D73419).) + - : `integer`. The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focused window. (For Firefox versions earlier than 109, `left: value` is ignored for popups (bug 1271047) and workaround is using browser.windows.update(). From Firefox Version 109, the `left: value` is considered (fix D73419).) - `state` {{optional_inline}} - : A {{WebExtAPIRef('windows.WindowState')}} value. The initial state of the window. The `minimized`, `maximized` and, `fullscreen` states cannot be combined with `left`, `top`, `width`, or `height`. - `tabId` {{optional_inline}} @@ -57,7 +57,7 @@ let creating = browser.windows.create( - `titlePreface` {{optional_inline}} - : `string`. Use this to add a string to the beginning of the browser window's title. Depending on the underlying operating system, this might not work on browser windows that don't have a title (such as about:blank in Firefox). - `top` {{optional_inline}} - - : `integer`. The number of pixels to position the new window from the top edge of the screen. If not specified, the new window is offset naturally from the last focused window. (Firefox < 109, `top: value` is ignored for popups (BUG 1271047) and workaround is using browser.windows.update(). From Firefox 109, the `top: value` is considered (FIX D73419).) + - : `integer`. The number of pixels to position the new window from the top edge of the screen. If not specified, the new window is offset naturally from the last focused window. (For Firefox versions earlier than 109, `top: value` is ignored for popups (bug 1271047) and workaround is using browser.windows.update(). From Firefox version 109, the `top: value` is considered (fix D73419).) - `type` {{optional_inline}} - : A {{WebExtAPIRef('windows.CreateType')}} value. Specifies what type of browser window to create. Specify `panel` or `popup` here to open a window without any of the normal browser UI (address bar, toolbar, etc.). - `url` {{optional_inline}}