Firefox 63 para desarrolladores

Este articulo proporciona información sobre los cambios en Firefox 63, que afectara a los desarrolladores. La versión de Firefox 63 fue publicada el 23 de octubre del 2018.

Cambios para los desarrolladores web

Herramientas de desarrollo

HTML

Removals

  • Soporte para la sidebar (barralateral) tipo de enlace (rel="sidebar") ha sido removido. si una etiqueta de anclaje incluye este atributo, sera ignorado. (error 1452645).

CSS

Removals

  • Removed offset-block-start, offset-block-end, offset-inline-start and offset-inline-end; these have been renamed to inset-*, as described above (error 1464782).

SVG

No changes.

JavaScript

Removals

  • Experimental WebAssembly Module IndexedDB serialization support has been removed (error 1469395).

APIs

New APIs

DOM

DOM events

  • Handling of the Alt key on the right side of the keyboard has been improved on Windows. If the user's current keyboard layout maps the Alt key to the AltGr modifier key, the value of KeyboardEvent.key is now reported as "AltGraph". This behavior matches the behavior recently introduced in Chrome (error 900750).

Media, Web Audio, and WebRTC

Canvas and WebGL

  • A new powerPreference context attribute has been added to HTMLCanvasElement.getContext(). On macOS this allows WebGL non-performance-critical applications and applets to request the low-power GPU instead of the high-power GPU in multi-GPU systems (error 1349799).

Removals

CSSOM

No changes.

HTTP

Security

  • Site favicons are now subject to Content Security Policy, if one is configured for the site (error 1297156).
  • CSP script-src directive's 'report-sample' expression now recognized when generating violation reports. This directive indicates that a short sample of where the violation occurred should be included in the report. Previously, Firefox always included this sample (error 1473218).
  • Firefox now uses NSS 3.39 (error 1470914).

Plugins

No changes.

WebDriver conformance (Marionette)

New features

  • Marionette now returns a setWindowRect capability in the WebDriver:NewSession response that is true if the browser window can be repositioned and resized, which e.g. is the case for Firefox but not any mobile applications (error 1470659).
  • Added support for the unhandledPromptBehavior capability, which allows to define a specific prompt behavior of the WebDriver specification (error 1264259).
  • Handling of user prompts has been added to the WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript commands (error 1439995).

API changes

  • Deprecated command end-points without the WebDriver: prefix have been removed (error 1451725).
  • The WebDriver:NewSession command returns recommended strings (linux, mac, windows) for platformName as defined in the WebDriver specification (error 1470646).

Bug fixes

  • Focus related events were missing on element interaction when Firefox was not running as the top-most application (error 1398111).
  • Performing a pointerDown and pointerUp action in a subsequent action sequence could trigger a double click because WebDriver:ReleaseActions didn't reset the double click tracker (error 1422583).
  • Executing pause actions repeatedly could cause an infinite hang (error 1447449).
  • Fixed a bug where returning an element collection from WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript would cause a cyclic reference error (error 1447977).
  • To prevent a race condition both the WebDriver:AcceptAlert and WebDriver:DismissAlert commands now wait until the user prompt has been closed (error 1479368).
  • Log entries as emitted by the frame script were no longer limited by MarionettePrefs.logLevel but logged everything (error 1482829).
  • WebDriver:TakeScreenshot raised an error when taking a screenshot of a window larger than 32767 pixels in width or height (error 1485730).
  • WebDriver:SendAlertText didn't replace default user prompt value if text to send is an empty string (error 1486485).

Other

  • Corrected the behavior of PerformanceObserver.observe() (en-US) to simply do nothing if no valid entry types are found in the specified array of entry types to observe, or if the array is empty or missing. Previously, Firefox was incorrectly throwing a TypeError (error 1403027).
  • In OpenSearch, Firefox now accepts application/json as a search URL type, as an alias of application/x-suggestions+json (error 1425827).

Changes for add-on developers

API changes

Theming

  • The default text color for browserAction (en-US) badges is now automatically set to black or white, to maximise contrast with the background (error 1474110).
  • The accentcolor and textcolor properties of the theme manifest key are now optional (error 1413144).
  • browserAction.getBadgeTextColor() (en-US) and browserAction.setBadgeTextColor() (en-US) enable you to get and set the text color of browser action badges (error 1424620).
  • The theme colors key in manifest.json now supports the ntp_text property to set the text color in a new tab, and the ntp_background property to set the color of a new tab (error 1347204).
  • Themes can now define the colors for sidebars, such as the bookmarks sidebar (error 1418602). The relevant properties include:
    • sidebar: The background color for sidebars.
    • sidebar_text: The text color for sidebars.
    • sidebar_highlight: The background color of a selected item in a sidebar.
    • sidebar_highlight_text: The text color of a selected item in a sidebar.
  • The method management.install() (en-US) allows web extensions to install and enable signed browser themes (error 1369209).

Tabs

Other

See also

Older versions