Firefox 79 for developers 编辑
This article provides information about the changes in Firefox 79 that will affect developers. Firefox 79 was released on July 28, 2020.
See also Firefox 79: The safe return of shared memory, new tooling, and platform updates on Mozilla hacks.
Changes for web developers
Developer Tools
Console
- Network messages with response codes in the 400-499 and 500-599 ranges are now considered errors, and are displayed even if Reponse or XHR filters are disabled. (bug 1635460)
- Network messages for requests that are blocked (by the browser or an extension) are now styled with a "prohibited" icon in the Console. (bug 1629875)
Debugger
- "Blackbox" a source file is now called "ignore" a source file. (bug 1642811)
- Inline preview is now available on exceptions. (bug 1581708)
- Items in the Watch Expressions and Scopes sections now have tooltips on hover, showing their values (bug 1631545)
- In the Call Stack section, there is now a context menu option to Restart Frame, to execute the current stack frame from its beginning. (bug 1594467)
Other tools
- The new Application panel is now available, which initially provides inspection and debugging support for service workers and web app manifests.
- The Messages tab of the Network Monitor has been merged with the Responses tab. (bug 1636421)
- The Accessibility Inspector is automatically turned on when you access its tab; you no longer need to explicitly enable it. (bug 1602075)
- In Responsive Design Mode, when touch simulation is enabled, mouse-drag events are now interpreted as touch-drag or swipe events. (bug 1621781)
- When remote debugging, the URL bar now has Back and Forward buttons to help with navigation on the remote browser. (bug 1639425)
HTML
- The
<iframe>
element'ssandbox
attribute now supports theallow-top-navigation-by-user-activation
token (bug 1359867). - Setting
target="_blank"
on<a>
and<area>
elements implicitly provides the same behavior as also settingrel="noopener"
(bug 1522083).
CSS
- External style sheets are now cached per document group (bug 1599160). Firefox will minimize retrieval and revalidation of cached style sheets when navigating pages on the same origin. A simple reload (for example, F5) will not revalidate the cached CSS files. To load current versions of the style sheets, reload the page bypassing the cache (Cmd/Ctrl + F5).
Removals
- The
prefers-color-scheme
media feature'sno-preference
value has been removed from the media queries spec, and from Firefox (bug 1643656).
JavaScript
SharedArrayBuffer
has been re-enabled in a post-Spectre-safe manner. It is available to cross-origin isolated sites (bug 1619649).- To cross-origin isolate your site, you need to set the new
Cross-Origin-Embedder-Policy
(COEP) andCross-Origin-Opener-Policy
(COOP) headers.
- To cross-origin isolate your site, you need to set the new
Promise.any()
is now available (bug 1599769).WeakRef
objects have been implemented (bug 1639246).- Logical assignment operators are now supported (bug 1639591)
Atomics
objects now also work with non-shared memory (bug 1630706).- The
Intl.DateTimeFormat()
constructor now supports thedateStyle
andtimeStyle
options (bug 1557718). - The
Intl.NumberFormat()
constructor now supports more numbering systems (bug 1413504).
HTTP
- Cross-origin isolation has been implemented using the new
Cross-Origin-Embedder-Policy
(COEP) andCross-Origin-Opener-Policy
(COOP) headers. This allows you to access certain features such asSharedArrayBuffer
objects and unthrottled timers inPerformance.now()
.
APIs
DOM
- The
FileReader
interface'sloadstart
event is now dispatched asynchronously, as per the spec (bug 1502403). CanvasPattern.setTransform()
now supports aDOMMatrix
object as an input parameter, as well as anSVGMatrix
object (bug 1565997).
Media, WebRTC, and Web Audio
- Firefox now supports remote timestamps on statistics records whose
RTCStatsType
isremote-outbound-rtp
. TheRTCRemoteOutboundRtpStreamStats
dictionary which is used to provide these statistics now includes theremoteTimestamp
property, which states the timestamp on the remote peer at which the statistics were collected or generated (bug 1615191).
Removals
- A number of internal Gecko events — including
DOMWindowClose
— which were accidentally exposed to the web, are now internal-only as intended (bug 1557407).
WebAssembly
- WebAssembly Bulk memory operations are now shipped (bug 1528294).
- WebAssembly Reference types are now shipped (bug 1637884).
- WebAssembly Threads (Shared memory & Atomics) are now shipped (bug 1389458, bug 1648685).
Changes for add-on developers
- New API:
tabs.warmup()
(bug 1402256) - Storage quotas are now enforced for the
sync
storage area (bug 1634615) (addons.mozilla.org blog post)
See also
Older versions
- Firefox 78 for developers
- Firefox 77 for developers
- Firefox 76 for developers
- Firefox 75 for developers
- Firefox 74 for developers
- Firefox 73 for developers
- Firefox 72 for developers
- Firefox 71 for developers
- Firefox 70 for developers
- Firefox 69 for developers
- Firefox 68 for developers
- Firefox 67 for developers
- Firefox 66 for developers
- Firefox 65 for developers
- Firefox 64 for developers
- Firefox 63 for developers
- Firefox 62 for developers
- Firefox 61 for developers
- Firefox 60 for developers
- Firefox 59 for developers
- Firefox 58 for developers
- Firefox 57 for developers
- Firefox 56 for developers
- Firefox 55 for developers
- Firefox 54 for developers
- Firefox 53 for developers
- Firefox 52 for developers
- Firefox 51 for developers
- Firefox 50 for developers
- Firefox 49 for developers
- Firefox 48 for developers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论