Firefox 64 for developers 编辑

This article provides information about the changes in Firefox 64 that will affect developers. Firefox 64 was released on December 11, 2018.

Changes for web developers

Developer tools

Removals

HTML

No changes.

CSS

Removals

SVG

No changes.

JavaScript

APIs

DOM

Service workers

Media, Web Audio, and WebRTC

Removals

  • The Window.event property, added in Firefox 63 to aid with web compat issues, has been put behind a pref (dom.window.event.enabled) and disabled by default in release versions for now due to other issues that have been uncovered (bug 1493869). Note that this was actually done late in the Firefox 63 release cycle, but we are mentioning it here just in case.
  • The LocalMediaStream interface and its stop() method have been removed (bug 1258143). This method is no longer available with the deprecation of LocalMediaStream. See Stopping a video stream in MediaStreamTrack.stop() to learn how to stop an entire stream.
  • The AudioStreamTrack and VideoStreamTrack interfaces have been removed, as both have been deprecated for some time (bug 1377146). Their functionality has been merged into MediaStreamTrack; tracks are now identified by the value of their kind property, such as audio or video.

Security

Plugins

No changes.

WebDriver conformance (Marionette)

API changes

  • Deprecated command end-points without the Marionette:, L10n:, or Addon: prefix (including singeTap) have been removed (bug 1504478, bug 1504940).

Bug fixes

  • Synthesized Shift key events by using WebDriver:PerformActions didn't result in capitalized letters (bug 1405370).
  • WebDriver:Navigate could cause an infinite hang if the tab's underlying content process is changed multiple times during that navigation (bug 1504807).
  • To improve the performance, and to reduce the memory footprint of Firefox the default page to be loaded for a new tab or window is no longer about:newtab but about:blank (bug 1506643).
  • The content blocking introduction panel, which was shown on various web pages and caused element interactions to fail is disabled by default now (bug 1488826).

Changes for add-on developers

API changes

  • A new API, menus.overrideContext(), can be called from the contextmenu DOM event to set a custom context menu in extension pages. This API allows extensions to hide all default Firefox menu items in favor of providing a custom context menu UI. This context menu can consist of multiple top-level menu items from the extension, and may optionally include tab or bookmark context menu items from other extensions. See this blog post for more details.
  • You can now restrict where context menus can appear in an add-on using the new viewTypes property in menus.create() and menus.update() (bug 1416839).
  • menus.update() can now be used to update the icon of an existing menu item (bug 1414566).
  • Extensions can now detect which mouse button was used when a menu item was clicked — this can be found using the new button property of menus.OnClickData (bug 1469148).

Windows

  • The windows.create() method now has a new option available — cookieStoreId — which specifies the CookieStoreId to use for all tabs that were created when the window is opened (bug 1393570).

Privacy

  • The privacy.websites cookieConfig property is an object that can accept a behavior property — this property can now take a new value, reject_trackers, which instructs the extension to reject tracking cookies (bug 1493057).

devtools.panels API

Manifest changes

  • The new pinned property of the page_action manifest key enables extensions to control whether their page actions should be pinned to the location bar on install or not (bug 1494135).
  • In native manifests on Windows, the 32-bit registry view (Wow6432Node) will be checked first for registry keys, followed by the "native" registry view; you should use whichever is appropriate for your application (bug 1494709).
  • The chrome_settings_overrides field's search_provider object can now include new properties — suggest_url and suggest_url_post_params (bug 1486819), and search_url_post_params.

See also

Older versions

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:98 次

字数:27724

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文