Firefox 34的新功能

It’s time for another (mostly painless) browser upgrade. Mozilla has released Firefox 34 with a number of new features for users and developers plus a controversial switch of default search engine. Let’s take a look under the hood…

现在是时候进行另一次(通常是无痛的)浏览器升级了。 Mozilla已经发布了Firefox 34,它为用户和开发人员提供了许多新功能,以及有争议的默认搜索引擎开关。 让我们一起来看看...

再见Google,雅虎您好 (Goodbye Google, Hello Yahoo)

The decade of default Googling is over. Mozilla’s lucrative partnership with Google has ended and Firefox users will have an alternative for the 100 billion searches they perform every year. According to the press release:

默认谷歌搜索的十年已经过去了。 Mozilla与Google的有利可图的合作伙伴关系已经结束,Firefox用户将可以选择他们每年执行的1000亿次搜索。 根据新闻稿:

In evaluating our search partnerships, our primary consideration was to ensure our strategy aligned with our values of choice and independence, and positions us to innovate and advance our mission in ways that best serve our users and the Web. In the end, each of the partnership options available to us had strong, improved economic terms reflecting the significant value that Firefox brings to the ecosystem.

在评估我们的搜索合作伙伴关系时,我们的首要考虑是确保我们的策略与我们的选择和独立性价值观保持一致,并使我们能够以最能为我们的用户和Web服务的方式创新和推进我们的使命。 最后,我们可以使用的每个合作伙伴选项都具有强大的,改进的经济条件,反映了Firefox为生态系统带来的巨大价值。

For those who can’t read marketing BS, this roughly translates to “Yahoo will give us more money”. As per the deal, for the next five years:

对于那些看不懂市场营销学士学位的人来说,这大概可以翻译成“雅虎将给我们更多的钱” 。 根据交易,未来五年:

  • Yahoo will be the default search engine for US users.

    雅虎将成为美国用户的默认搜索引擎。
  • Yandex will be the default for Russian users.

    Yandex将是俄罗斯用户的默认设置。
  • Baidu will continue to be the default for Chinese users.

    百度将继续是中国用户的默认设置。
  • Google will remain to be the default for other users throughout the world. There will inevitably be some commercial payback but there’s no official arrangement.

    对于全球其他用户,Google仍将是默认用户。 不可避免地会有一些商业回报,但没有官方安排。
  • Google, Bing, DuckDuckGo, eBay, Amazon, Twitter and Wikipedia will continue to be built-in search options.

    Google,Bing,DuckDuckGo,eBay,Amazon,Twitter和Wikipedia将继续是内置的搜索选项。

As well as monetary concerns, I suspect Google’s commercial vision and own browser didn’t sit well with Mozilla. There are rumors negotiations broke down because Google were not eager to follow Do Not Track privacy standards. Interestingly, Yahoo ignores DNT but will now enable it — but only for Firefox users.

除了金钱方面的问题,我怀疑Google的商业前景和自己的浏览器与Mozilla的配合也不佳。 有传言谈判破裂,因为谷歌不愿意遵循“不追踪”隐私标准。 有趣的是,雅虎忽略了DNT,但现在将启用它-但仅适用于Firefox用户。

What’s most interesting is what’s not being said. Yahoo no longer power their own search engine; below the surface, it’s Microsoft’s Bing.

最有趣的是没有说什么。 雅虎不再提供自己的搜索引擎。 在表面之下,是微软的Bing。

Ultimately, little of this matters to users: you can continue to use whichever engine you prefer. Mozilla doesn’t need to make a profit but it’ll be intriguing to discover how the deal affects the income which is plowed back into Firefox development.

最终,这几乎对用户无关紧要:您可以继续使用您喜欢的任何引擎。 Mozilla不需要赚钱,但会发现这笔交易如何影响收入,这将很有趣,而收入又被重新投入Firefox开发。

改进的搜索栏 (Improved Search Bar)

A new one-click search bar offers suggestions and an icon set with alternative engines. Bizarrely, only US users receive this enhancement so I guess it’s somehow part of the Yahoo deal?

新的一键式搜索栏提供了建议以及带有备用引擎的图标集。 奇怪的是,只有美国用户才能获得此增强功能,所以我想这是雅虎交易的一部分吗?

Firefox您好 (Firefox Hello)

Hello is a real-time video chat built by tokbox using WebRTC. In essence, it’s Skype or Google Hangouts without the need for additional software, plugins or a user account. Or even Firefox — a “Hello” link can be sent to anyone with a WebRTC-compatible browser such as Chrome or Opera.

Hello是tokbox使用WebRTC构建的实时视频聊天。 本质上,它是Skype或Google Hangouts,不需要其他软件,插件或用户帐户。 甚至甚至是Firefox,也可以将“ Hello”链接发送给具有WebRTC兼容浏览器的任何人,例如Chrome或Opera。

Unlike the competitors, WebRTC is a peer-to-peer service so you chat without a provider eves-dropping on your conversation. It’s being rolled out gradually — if you can’t see it, enable loop.throttled in about:config and restart the browser. You may need to use Customize to drag the “Hello” icon somewhere on your toolbar or menu.

与竞争对手不同,WebRTC是一种点对点服务,因此您可以聊天,而提供商却不会掉队。 它正在逐步推出-如果看不到它, 在about:config中启用loop.throttled并重新启动浏览器。 您可能需要使用“自定义”将“ Hello”图标拖动到工具栏或菜单上的某个位置。

Firefox Hello

The service is in beta and I received several failures but it’s a promising start.

该服务处于测试阶段,但我收到了几次失败的消息,但这是一个有希望的开始。

Windows“ Firefox已在运行”修复 (Windows “Firefox is already running” Fix)

Now and again, Firefox won’t start on Windows because it’s already running in the background — normally, it’s because the user’s profile is locked. The only solution was to open the Windows Task Manager and kill the Firefox process — not something the average user would know.

Firefox一次又一次无法在Windows上启动,因为它已经在后台运行了-通常是因为用户的配置文件被锁定了。 唯一的解决方案是打开Windows任务管理器并终止Firefox进程-这不是普通用户所知道的。

While the problem is not exactly fixed, Firefox 34 shows a message which allows you to terminate the process.

虽然问题并未完全解决,但Firefox 34会显示一条消息,允许您终止该过程。

CSS更新 (CSS Updates)

A number of new CSS Fonts Level 3 features have been added:

添加了许多新CSS字体3级功能:

  • font-kerning controls how letters are spaced: auto, normal or none.

    font-kerning控制font-kerning间距: autonormalnone

  • font-synthesis controls how missing bold or italic typefaces are synthesized: none (neither should be synthesized), weight, style or weight style (both can be synthesized).

    font-synthesis控制着丢失的粗体或斜体字体的合成方式: none (都不应该合成), weightstyleweight style (都可以合成)。

  • font-variant-position can be set to normal, sub and super to define smaller subscript and superscript characters respectively. Firefox attempts to use the correct glyphs for the font — such as the 2 squared character. Where this does not exist, it will now create synthetic alternates.

    可以将font-variant-position设置为normal,sub和super,分别定义较小的下标和上标字符。 Firefox尝试为字体使用正确的字形,例如2个平方字符。 如果不存在此选项,它将现在创建合成替代项。

  • font-variant-caps controls alternative glyphs for capital letters, e.g. small-caps, titling-caps.

    font-variant-caps控制大写字母的替代字形,例如小型大写字母,标题大写字母。

  • font-variant-numeric controls alternate glyphs for numbers, fractions, and ordinal markers, e.g. slashed-zero, diagonal-fractions, stacked-fractions, etc.

    font-variant-numeric控件控制数字,分数和顺序标记的替代字形,例如,斜杠零,对角分数,堆积分数等。

  • font-variant-east-asian controls alternative glyphs for East Asian scripts, such as Chinese and Japanese, e.g. simplified, traditional, jis90, etc.

    font-variant-east-asian控制东亚文字(例如中文和日语)的替代字形,例如简体,繁体,jis90等。

  • font-variant-ligatures controls typographic ligatures where two or more letters are joined as a single glyph, e.g. common-ligatures, historical-ligatures, etc.

    font-variant-ligatures控制印刷的连字,其中两个或多个字母作为单个字形连接在一起,例如,普通连字,历史连字等。

  • font-variant-alternates controls alternate glyphs associated to alternative names defined by @font-feature-values.

    font-variant-alternates控制与@font-feature-values定义的备用名称关联的备用字形。

  • font-variant is supported which is a shorthand for font-variant-caps, font-variant-numeric, font-variant-alternates, font-variant-ligatures, and font-variant-east-asian.

    支持font-variant ,它是font-variant-capsfont-variant-numericfont-variant-alternatesfont-variant-ligaturesfont-variant-east-asian的简写。

In addition, a number of minor updates and fixes have been applied to min-width, max-width and transitions which change display, position or overflow.

此外,已对min-widthmax-width和过渡更改了许多次要的更新和修复,这些更改更改了显示,位置或溢出。

JavaScript更新 (JavaScript Updates)

Templates are strings containing other variables which are parsed — similar to the evaluation of double-quote strings in PHP. Template strings are enclosed with back-tick quotes (`) and use ${} to hold each expression, e.g.

模板是包含其他已解析变量的字符串,类似于PHP中对双引号字符串的求值。 模板字符串用反引号引起来(`),并使用${}来保存每个表达式,例如

var a = 5, b = 10;
console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`);
// same result as:
console.log("Fifteen is " + (a + b) + " and not " + (2 * a + b) + ".");

A new ES6 shorthand for functions can now be adopted. For example, rather than:

现在可以采用新的ES6功能缩写。 例如,而不是:

var myObject = {
  methodOne: function() {},
  methodTwo: function() {},
  generator: function*() {}
};

you can use:

您可以使用:

var myObject = {
  methodOne() {},
  methodTwo() {},
  * generator() {}
};

The Object.assign method copies enumerable and own properties from one or more source objects to a target object without requiring your own recursive loops, e.g.

Object.assign方法可将可枚举的属性和自己的属性从一个或多个源对象复制到目标对象,而无需您自己的递归循环,例如

var o1 = { a: 1 }, o2 = { b: 2 }, o3 = { c: 3 };
var obj = Object.assign(o1, o2, o3);
console.log(obj);
// { a: 1, b: 2, c: 3 }

The Element.matches() method returns true if an element would be selected by the specified selector string, e.g.

如果将由指定的选择器字符串选择元素,则Element.matches()方法将返回true。

var e = document.getElementById("myelement");

console.log( e.matches("body #myelement") ); // true
console.log( e.matches("#anotherelement") ); // false

The Performance.now() method returns a floating point date stamp measured in milliseconds, accurate to one thousandth of a millisecond! It’s similar to the less accurate Date.now() which returns whole milliseconds. A value of zero represents:

Performance.now()方法返回浮点日期戳,以毫秒为单位,精确到千分之一毫秒! 它类似于不太精确的Date.now() ,它返回整毫秒。 零值表示:

  • the Unix epoch of 1 January 1970

    1970年1月1日的Unix时代
  • if running from a web worker, the moment that worker started

    如果从网络工作者运行,则该工作者启动的那一刻
  • if running from a web worker created by another worker, the parent worker’s epoch time

    如果从另一个工作人员创建的网络工作人员运行,则父工作人员的纪元时间

(Yet to be documented) smooth scrolling methods have been added to window.scroll(), window.scrollTo() and window.scrollBy(). It’s about time!

(尚未记录)平滑滚动方法已添加到window.scroll()window.scrollTo()window.scrollBy() 。 是时候了!

Finally, ES6 weakset has been implemented.

最后, ES6弱势已经实现。

开发人员工具更新 (Developer Tool Updates)

A new Storage Inspector allows you to view site data in cookies, localStorage, sessionStorage and IndexDB. It needs to be enabled by opening the tools, clicking the Settings cog icon and checking the Storage option.

新的Storage Inspector允许您查看cookie,localStorage,sessionStorage和IndexDB中的站点数据。 需要通过打开工具,单击“设置”齿轮图标并选中“ 存储”选项来启用它。

While you’re in the settings, enable Select an iframe as the currently targeted document. This allows you to examine iframe content separately rather than viewing it as as child of the parent document.

在设置中,启用选择iframe作为当前目标文档 。 这样一来,您就可以单独检查iframe内容,而不必将其作为父文档的子项来查看。

The Page Inspector shows events attached to DOM nodes with an ev icon. However, in previous editions, an event defined using jQuery would show jQuery’s internal handler functions. From version 34, the Inspector shows the parent handler function — which is far more useful.

页面检查器使用ev图标显示附加到DOM节点的事件。 但是,在以前的版本中,使用jQuery定义的事件将显示jQuery的内部处理函数。 从版本34开始,检查器将显示父处理程序函数-更加有用。

The Performance tool and frame rate timeline have been redesigned to help assess responsiveness.

重新设计了性能工具和帧速率时间表,以帮助评估响应速度。

Firefox 34 performance

The console now supports console.table which can be useful for outputting structured data stored in arrays and objects.

控制台现在支持console.table ,这对于输出存储在数组和对象中的结构化数据很有用。

Finally, you can access the Web Audio inspector and WebIDE as provided in the Firefox Developer Edition.

最后,您可以访问Firefox Developer Edition中提供的Web Audio检查器和WebIDE。

If that’s not enough, a new dev/panel API allows you to build your own Developer Tool extensions and plugins. Are Firebug’s days numbered?

如果这还不够,那么新的dev / panel API允许您构建自己的Developer Tool扩展和插件。 萤火虫的日子有编号吗?

杂项更新 (Miscellaneous Updates)

And there’s more…

还有更多……

  • A new Themes button is shown in Customize.

    “自定义”中将显示一个新的“ 主题”按钮。

  • HTTP/2 implementation.

    HTTP / 2实现。
  • Wikipedia uses HTTPS for secure searching (again, it’s US-only for some reason?)

    维基百科使用HTTPS进行安全搜索(再次,出于某种原因,它仅在美国使用?)
  • fullscreen video disables sleep and screen dimming on Mac.

    全屏视频会在Mac上禁用睡眠和屏幕变暗功能。
  • (Yet another) re-design for the Android edition.

    (还有)重新设计Android版本。
  • Firefox on Android supports mirroring for Google Chromecast devices.

    Android上的Firefox支持Google Chromecast设备的镜像。
  • Various security fixes.

    各种安全修复程序

Phew. That’s an impressive number of updates for a six-week development schedule.

ew 在为期六周的开发计划中,这是令人印象深刻的更新。

It’s early days, but Firefox 34 also seems a little faster and more stable than version 33. Perhaps it’s the combination of add-ons I use, but I experienced various problems and crashes and considered downgrading to v32. Hopefully, the main issues are fixed.

虽然还处于初期,但是Firefox 34似乎也比版本33更快,更稳定。也许这是我使用的附加组件的组合,但是我遇到了各种问题和崩溃,因此考虑降级到v32。 希望主要问题已解决。

While the Yahoo switch is largely irrelevant and I’m slightly alarmed by the number of US-only features, Firefox 34 is a great update. Firefox 35 will appear in early 2015.

尽管Yahoo的切换基本上无关紧要,并且我对美国专用功能的数量感到有些震惊,但Firefox 34是一个不错的更新。 Firefox 35将于2015年初上市。

翻译自: https://www.sitepoint.com/whats-new-firefox-34/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值