Commit Graph

602062 Commits

Author SHA1 Message Date
Andreea Pavel
1bf7ac45bb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-30 13:10:01 +03:00
Andreea Pavel
91a9c110e2 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-30 12:49:32 +03:00
Emilio Cobos Álvarez
c4900d4847 Bug 215083: Fix CreateContinuingFrame to account for non-nsImageLoadingContent image frames. r=heycam
MozReview-Commit-ID: CLx3siPe4Cx
2018-06-30 03:45:12 +02:00
Emilio Cobos Álvarez
df24c5fda6 Bug 215083: Remove sync image request clone. r=tnikkel
MozReview-Commit-ID: 59bXcnxfJTC
2018-06-30 03:45:12 +02:00
Emilio Cobos Álvarez
6d73d28803 Bug 215083: Implement content: url(..) for elements. r=tnikkel,dholbert
Dynamic changes are handled correctly because content property changes already
cause a reframe.

This implements the same bits as Blink / WebKit do (single content item which is
an image, otherwise gets ignored), except for the edge cases where you use this
on an image.

In order to handle the edge cases right, we completely isolate the
nsImageLoadingContent usage based on `mKind`.

Blink's and WebKit's behavior there makes no sense and it's erratic, what I
implemented is consistent (we apply to images as long as they don't generate a
box, and we don't look at alt text or broken icons), though I'll update to
whatever the WG decides in https://github.com/w3c/csswg-drafts/issues/2831 /
https://github.com/w3c/csswg-drafts/issues/2832.

I don't think it matters in terms of web compat in any case.

MozReview-Commit-ID: JUurhC60hWr
2018-06-30 03:45:13 +02:00
Andrew Osmond
b13b2abe4f Bug 1472145 - Part 2. Add telemetry to track how frequently WebP images are used. r=tnikkel data-r=chutten
This patch adds three telemetry scalars to track how WebP is used. All
of these scalars are updated when we do the MIME type confirmation for
an imgRequest when the first data comes in. We know at this point we
decided to load the given content, so there should be minimal false
positives for data the browser loaded but never displayed.

The first two scalars are merely whether or not WebP was observed. One
is for probes, which are tiny WebP images suggested by the Google WebP
FAQ to probe for different aspects of WebP support (lossy, animated,
etc). We want to count this separately as actual WebP content that the
website wishes us to display. Probes will give a measure of how many
users visit websites that probe for WebP support, and content will give
a measure of how many websites don't care and just give us WebP images
regardless.

The third scalar is intended to give a relative measure of how many WebP
images we are being served relative to all other image types. We expect
the ratio to be small, but it would be good to confirm this from the
data.
2018-06-29 20:30:08 -04:00
Andrew Osmond
c7ece5c2e5 Bug 1472145 - Part 1. Add support for identifying the WebP images MIME type. r=tnikkel 2018-06-29 20:30:05 -04:00
André Bargull
e09a53c18a Bug 1471788: Apply ToNumber conversion even when the typed array write is out-of-bounds. r=evilpie
--HG--
extra : rebase_source : 9c1cc0307b8c1800f99e0884975ecd935b0e5a5d
2018-06-29 13:46:04 -07:00
Mats Palmgren
e9805c3053 Bug 1470260 part 2 - Make RefreshDriverTimer ref-counted and hold a strong ref on it on the stack when nsRefreshDriver::Tick can be reached. r=emilio 2018-06-30 01:08:54 +02:00
Mats Palmgren
050942c49c Bug 1470260 part 1 - Ensure that 'this' stays alive for the duration of the TickRefreshDriver call. r=emilio 2018-06-30 01:08:54 +02:00
Olli Pettay
2e00f64ed1 Bug 1419661, if ExtendedDOMSlots are used before slots, use FatSlots to have fewer allocations, r=mrbkap 2018-06-30 01:30:37 +03:00
Calixte Denizet
264c53b6fe Bug 1472146 - Disable warnings-as-errors on macosx64 and win64 code coverage builds to avoid false positives. r=marco
Reviewers: marco

Reviewed By: marco

Bug #: 1472146

Differential Revision: https://phabricator.services.mozilla.com/D1877

--HG--
extra : amend_source : a4af8b6c06139f5147cd837619ecfc9bb454737d
2018-06-30 01:17:03 +03:00
Calixte Denizet
9aabc7f563 Bug 1471882 - Fix build bustage on nsCodeCoverage.cpp r=marco
Summary:
- Add explicit keyword on ProcessCount ctor
- Fix an unused variable in a loop

Reviewers: marco

Reviewed By: marco

Bug #: 1471882

Differential Revision: https://phabricator.services.mozilla.com/D1864

--HG--
extra : rebase_source : be0ae98ba0b54fc626b6857336c59d114be1e6f3
2018-06-30 01:14:21 +03:00
Jeff Walden
80abb71067 Bug 1472066 - Add some helper functions to enable (once the non-integral Utf8Unit code unit type lands, soon) dealing with Utf8Unit as the type of UTF-8 source code in addition to char16_t for UTF-16 source code. r=arai
--HG--
extra : rebase_source : 1f050dd6c0cb07a8b5d8bc257eb42ec78d699a33
2018-06-28 20:17:17 -07:00
Jeff Walden
2f902e38d0 Bug 1472066 - Specialize TokenStreamCharsBase::fillCharBufferWithTemplateStringContents for char16_t now that its alternative UTF-8 implementation will have to function a bit differently to write data into a char16_t charBuffer. r=arai
--HG--
extra : rebase_source : 8c6e13e16777abc910aaf46d4654ae03e88f32fa
2018-06-28 20:14:27 -07:00
Jeff Walden
e249f558aa Bug 1472031 - Add SourceUnits::matchHexDigits and remove SourceUnits::peekCodeUnits used for the same ends (but that also performed a needless copy). r=arai
--HG--
extra : rebase_source : bad3e97ead1b4d72dd39420bfc96614913464d62
2018-06-28 16:08:53 -07:00
Jeff Walden
76990b22f2 Bug 1472031 - Avoid copying potential directives in TokenStreamSpecific::getDirective. r=arai
--HG--
extra : rebase_source : d6386e0fe99a2fe9050d25952426205779b8ee2e
2018-06-28 15:39:14 -07:00
Jeff Walden
75148cb5d5 Bug 1472031 - Implement a SourceUnits::remaining() function exposing how many code units are left. r=arai
--HG--
extra : rebase_source : a0e1e6add04478f6dda4407943772683f77fad24
2018-06-28 15:34:12 -07:00
Jeff Walden
4ec8af2179 Bug 1472031 - Define TokenStreamAnyChars::updateFlagsForEOL inline in the header, for simplicity. r=arai
--HG--
extra : rebase_source : 970066032cae253d5b816f188d03b23025d28729
2018-06-28 15:33:29 -07:00
Jeff Walden
4f9aef7e10 Bug 1472031 - Rename atomizeChars to atomizeSourceChars to clarify it's only for atomizing directly from source text. r=arai
--HG--
extra : rebase_source : 0a666084c0695aac7ac994c2b96d0f699965657c
2018-06-28 15:32:41 -07:00
Jeff Walden
7ed2b26ceb Bug 1472031 - Introduce a drainCharBufferIntoAtom function to clear charBuffer and create an atom from the chars that were in it. r=arai
--HG--
extra : rebase_source : bd8f3114f8704b7a266ccf21d4c110fe28ab77f1
2018-06-28 15:31:13 -07:00
Jeff Walden
da3129de0b Bug 1467336 - Change a bunch of 'character' nomenclature in token stream code to 'code unit', completing the transition from tokenizing by UTF-16 'character' to tokenizinng by UTF-8/16 code unit. (There are straggling places where algorithms will need to be specialized for UTF-8, or functions will need to move within the TokenStream* hierarchy to permit such; but what is in the tree now universally acts on code units first, full code points second.) r=arai
--HG--
extra : rebase_source : 06fa722d16b801f9db7f38110756d8a8f62b6617
2018-06-28 02:30:08 -07:00
Jeff Walden
8d4d43a2d1 Bug 1467336 - Remove GeneralTokenStreamChars::{,un}getChar now that they're unused. r=arai
--HG--
extra : rebase_source : 908ffc7370dafe00bb6266ec5817b40bb353d93f
2018-06-28 02:27:50 -07:00
Jeff Walden
3da23e1993 Bug 1471465 - Fix some issues with ungetting LineTerminatorSequence in certain places. r=arai
--HG--
extra : rebase_source : 82a7a98fc500d26be67363c45f91662887b12091
2018-06-27 13:26:14 -07:00
Jeff Walden
69afaf684f Bug 1471464 - Make getNonAsciiCodePoint, getFullAsciiCodePoint, and isAsciiCodePoint all take |int32_t| and not |CharT|, because they're all passed |int32_t| from |getCodeUnit()| or a code point-getting mechanism. r=arai
--HG--
extra : rebase_source : 2582f93ab5c048bb0df42563331a450423529e3c
2018-06-27 13:26:13 -07:00
Jeff Walden
9d4fe70e96 Bug 1471463 - Move TokenStreamCharsBase::tokenbuf and related functions into a new TokenStreamCharsShared base class, make the character type always char16_t, and rename it/them to 'charBuffer' for clarity. r=arai
--HG--
extra : rebase_source : ac4e81db943a1f69a8caa0722d4239b4fb5dc1c1
2018-06-27 13:25:57 -07:00
Jeff Walden
8fc3ac9afc Remove a |false &&| inadvertently left in a patch as part of testing a fallback code path. Followup to bug 1457560, r=me, thanks to IRC for pointing it out recently
--HG--
extra : rebase_source : e1561f2e42d23d7c0ee38599b16661f85f3fa7c4
2018-06-29 18:01:07 -07:00
Jeff Walden
83a1c5a302 Fully privatize the contents of the JS::Value union now that it cannot be POD because it has a non-trivial default constructor. No bug, r=me as trivial
--HG--
extra : rebase_source : 222290ba211e2fbe1693498a42d43a2064af45b8
2018-06-26 16:18:55 -07:00
Kris Maglione
fcedebb912 Bug 1471102: Move more code out of ExtensionUtils.jsm. r=aswan
MozReview-Commit-ID: Fqlv5BRuuW8

--HG--
extra : rebase_source : 348f037abd9cecfa080183bc365e5f005eac1bd6
extra : amend_source : 05dbfd12f553fc3f2a93374402e34d271e26d767
2018-06-25 19:30:21 -07:00
Emilio Cobos Álvarez
766cc497e9 Bug 215083: Account for subclasses in the next-in-flow assertion. r=me
MozReview-Commit-ID: 2E8Fm4Lxnf8
2018-06-30 04:42:22 +02:00
Masayuki Nakano
36f73c43d8 Bug 1435717 - Make calling WidgetEvent::PreventDefault*() stop cross process forwarding too r=smaug
Currently, if an event is consumed in the main process, EventStateManager
does not send it to remote process.  However, this is unexpected behavior
for some WidgetKeyboardEvent dispatchers.  OS sometimes has consumed native
key events before sending applications.  For example, Alt key on Windows
should activate menu bar of focused window but Alt key may be consumed before
focused window receives the event.  In such case, we mark Alt keyboard event
as "consumed before dispatch", and chrome treat it like as its preventDefault()
is called in web content.  (Note that for compatibility with other browsers,
the consumed state is not exposed to web content.  So, Event.defaultPrevented
returns false in web content.)

Therefore, we need to treat "consumed" state and "cross process forwarding"
state separately.  This patch makes calling WidgetEvent::PreventDefault()
always stops cross process forwarding for backward compatibility.  Additionally,
for the special case mentioned above, this patch makes
WidgetEvent::PreventDefaultBeforeDispatch() take additional argument,
|aIfStopCrossProcessForwarding|.  If this is CrossProcessForwarding::eStop,
the event won't be sent to remote process as same as calling PreventDefault().
Otherwise, CrossProcessForwarding::eHold, PreventDefaultBeforeDispatch() call
does not change "cross process forwarding" state.  I.e., if the event's
StopCrossProcessForwarding() and PreventDefault() are not called until
EventStateManager::PostHandleEvent(), the event will be sent to remote process
as usual.

MozReview-Commit-ID: IQGWJvXetxV

--HG--
extra : rebase_source : 4ccdd500e80b8fe29e469ac3b85578e1c07c8358
2018-06-25 18:17:18 +09:00
Dorel Luca
22b6094620 Backed out 2 changesets (bug 1472286) for Browser chrome failures on toolkit/mozapps/extensions/test/browser/browser_legacy_themes.js
Backed out changeset 914241e649a0 (bug 1472286)
Backed out changeset dc9cfde75af6 (bug 1472286)
2018-06-30 03:38:37 +03:00
Tim Nguyen
1b2c511d72 Bug 1472286 - Fix checks for legacy themes. r=kmag
MozReview-Commit-ID: 9bkTG2njxJJ

--HG--
extra : rebase_source : 25a047d5efba60f8a1ad9ee3dd9ed379bd3952c5
2018-06-26 13:46:22 +01:00
Tim Nguyen
4ae3363c05 Bug 1472286 - Stop appending @personas.mozilla.org suffix for built-in themes. r=kmag
MozReview-Commit-ID: CCRraTIKbR3

--HG--
extra : rebase_source : f4df49e52887d4974afdb46d68dbaadcfa86be5d
2018-06-26 13:39:47 +01:00
Jeff Gilbert
8a7965a452 Bug 1468747 - Replace AndroidBridge usage with jni::GetAPIVersion. - r=snorp
MozReview-Commit-ID: F8BeEJzYxdn

--HG--
extra : rebase_source : e7111d0276638706b5d9c8c66263808408dfc1fb
2018-06-28 17:56:04 -07:00
Dão Gottwald
bf70cd59cf Bug 1468992 - Remove the Library infopane More/Less toggle. r=mak
MozReview-Commit-ID: LRNXWTHaGYS

--HG--
extra : rebase_source : c71bf348490ea8f3791202e65f42280bf81ed803
2018-06-30 01:12:13 +02:00
Dão Gottwald
f794a876e1 Bug 1468077 - Stop disabling cmd_close and cmd_closeWindow in the bookmark panel since it seems to be half-broken and is inconsistent with other panels. r=mak
MozReview-Commit-ID: AkKaq5Kon77

--HG--
extra : rebase_source : 23abeac68a167cb45e128474e322ac9283fa91ce
2018-06-29 13:33:05 +02:00
Ed Lee
7f2da678f7 Bug 1472302 - Add router previews, prerender noscripts and bug fixes to Activity Stream. r=ursula
MozReview-Commit-ID: 19dFAQNpGLD

--HG--
extra : rebase_source : 85f6c72416dd3c38823048a039a7777d8fa0f877
2018-06-29 11:59:55 -07:00
Dave Hunt
a631fc714d Bug 1472201 - Vendor pytest 3.6.2 and dependencies; r=ahal
MozReview-Commit-ID: 5qfK6OygVMH

--HG--
rename : third_party/python/pytest/_pytest/vendored_packages/pluggy-0.4.0.dist-info/LICENSE.txt => third_party/python/pluggy/LICENSE
rename : third_party/python/pytest/doc/en/example/costlysetup/sub1/__init__.py => third_party/python/pytest/doc/en/example/costlysetup/sub_a/__init__.py
rename : third_party/python/pytest/doc/en/example/costlysetup/sub1/__init__.py => third_party/python/pytest/doc/en/example/costlysetup/sub_b/__init__.py
rename : third_party/python/pytest/_pytest/_code/__init__.py => third_party/python/pytest/src/_pytest/_code/__init__.py
extra : rebase_source : d80873f2b1899decefbddddfc2f69ae045925b81
2018-06-29 15:37:31 +01:00
Coroiu Cristina
a4cd34df05 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-06-30 01:00:54 +03:00
Coroiu Cristina
5416c68fa2 Backed out changeset 64f3290fac6e (bug 1471532) on reqest by decoder a=backout 2018-06-30 00:57:00 +03:00
Coroiu Cristina
4dfea54f1d Merge inbound to mozilla-central a=merge 2018-06-30 00:52:37 +03:00
Dorel Luca
745adab0fd Backed out changeset 4503f56bf96f (bug 1421433) for Browser chrome failures on browser/base/content/test/performance/browser_startup_flicker.js. CLOSED TREE
--HG--
extra : amend_source : 4e7ce1f236a8394a44a0b2891cdc44cbd7a042c3
2018-06-29 21:30:27 +03:00
Dorel Luca
3bdf266662 Backed out changeset 839c17021ae0 (bug 1472153) for Browser chrome failure on browser/base/content/test/performance/browser_startup_flicker.js. CLOSED TREE 2018-06-29 21:29:45 +03:00
Coroiu Cristina
85cfb65d4b Backed out changeset 57c6388be227 (bug 1466880) for devtools failures at devtools/client/responsive.html/test/browser/browser_telemetry_activate_rdm.js on a CLOSED TREE 2018-06-29 20:42:35 +03:00
David Major
67c0e7ceb2 Bug 1471310: Disable the emptiness assertion in ProtectedRegionTree. r=nbp
This is causing random failures with clang-cl and per the bug discussion we have better mechanisms to catch leaks.
2018-06-29 13:28:09 -04:00
David Major
56b39c6150 Bug 1471310 - Clear the Installed flag when removing the MemoryProtectionExceptionHandler. r=luke 2018-06-29 13:27:57 -04:00
Dão Gottwald
bea31df2b2 Bug 1459878 - Add "Show editor when saving" checkbox to the Bookmark panel. r=mak
MozReview-Commit-ID: IUji9cQmVz9

--HG--
extra : rebase_source : 67e0f9a5bd5ca0c5292fa738119b01cfec9dda7a
2018-06-29 12:39:30 +02:00
Michael Kelly
38fdedebf7 Bug 1451702: Mangle file: and jar: paths in browser error reports. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1868

--HG--
extra : rebase_source : 65ce32dac6b61414acd685f8787b5709a0070b54
extra : amend_source : 51fb635ec9b8cbdc27917f95f72583d03b5322a2
extra : intermediate-source : 28564cd34c706e909df136c4c0ea374f4836a344
extra : source : 71156adbd18ecb9f5b4d09638881a3714c71244b
2018-06-28 11:19:24 -07:00
Andrew Swan
07dcc1c764 Bug 1451519 Convert specialpowers to a webextension r=kmag
This is a quick-and-dirty port.  It might be nice to replace
SpecialPowersObserver with the webextensions content script injection
system at some point, but that isn't practical right now (since WE experiments
cannot implement new APIs visible to content scripts).

MozReview-Commit-ID: GinCu3VcbWK

--HG--
rename : testing/specialpowers/bootstrap.js => testing/specialpowers/api.js
extra : rebase_source : 0faf7d21c8868c957ddc7fede0d56809f27dc161
extra : intermediate-source : ffb9ce93b92dd6396bfe038d3f6a8bcf929ec277
extra : source : cca596eadd0437dc75b75c119b6c7a405805f703
2018-06-27 13:10:51 -07:00