Граф коммитов

556982 Коммитов

Автор SHA1 Сообщение Дата
Tom Tung 67d7727ec0 Bug 1290481 - P9: Implement a function to get overall padding size for an origin from cache.sqlite. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : a6956325cfdf6f11a4bcf66d41b8d4706ae4e1e7
2017-07-18 18:58:56 +08:00
Tom Tung 8eb68da410 Bug 1290481 - P8: Implement few utility functions to access direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 23145f66eb62f2f858311513f6bec4ead01d18cd
2017-07-18 18:57:54 +08:00
Tom Tung 161d91b1ba Bug 1290481 - P7: Create a mutex lock on CacheQuotaClient for protected accessing directory padding file. r=bkelly
--HG--
extra : rebase_source : 5115d1d04083807dbe4a9cc8a388c62871e07fe9
2017-07-20 11:33:39 +08:00
Tom Tung 65c21f0c77 Bug 1290481 - P6: Upgrade QuotaManager to v3.0 for adding directory padding file to existing DOM Cache directory. r=bkelly, janv
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : ebc8bffa58ec4ab2226254fe5c3333d5425fa2fd
2017-07-18 18:54:20 +08:00
Tom Tung a1e22fa9e7 Bug 1290481 - P5: Implement a function to generate padding size. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc

--HG--
extra : rebase_source : 982139c536c17a6699d700df7c8b3071939bb3c0
2017-07-10 17:03:24 +08:00
Tom Tung 29522efbef Bug 1290481 - P4: Update padding size to the QuotaManager. r=bkelly, janv
MozReview-Commit-ID: 6poDeyErBjc

--HG--
extra : rebase_source : c7f556ad5c4516c0509a998c16c086795e5fa4b2
2017-07-10 17:02:44 +08:00
Tom Tung 280d7fa36c Bug 1290481 - P3: Record padding size into cache.sqlite. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc

--HG--
extra : rebase_source : 2c53b2891cc6da4e1688bd7f93cf79314554e1f1
2017-07-10 16:54:20 +08:00
Tom Tung c9e3e0f1c0 Bug 1290481 - P2: Upgrade the version of cache.sqlite to store opaque responses' padding size in SQLite. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc

--HG--
extra : rebase_source : 5c9748ac9d4b269666f66bfb1661b095eb099bc1
2017-07-10 16:45:56 +08:00
Tom Tung 9321dc629d Bug 1290481 - P1: Make InternalResponse and CacheResponse be able to keep padding size. r=bkelly
MozReview-Commit-ID: LIxkSdfPZtf

--HG--
extra : rebase_source : ff52bdc1cc813ebc4d5ec679b4bac3dfb52550ac
2017-07-10 17:11:29 +08:00
Nathan Froyd c88ec30451 Bug 1396892 - turn off -Wtautological-pointer-compare in memory/build/ for Android; r=njn
clang warns about this code in mozmemory_wrap.c in the reimplementation
of vasprintf, complaining that `fmt` cannot be null:

    if (str == NULL || fmt == NULL) {
                       ^~~    ~~~~

clang is apparently exploiting knowledge about the requirements of
vasprintf here, but defensive programming on the part of our
reimplementation seems like the wiser course.  Let's turn off the
warning.
2017-09-07 08:20:12 -04:00
Olli Pettay b281ca80cd Bug 1368972 - Increase slice time for long-running incremental GCs when CC has tried to run, r=mccr8,jonco
--HG--
extra : rebase_source : c5313c5900da74d6232eef882bb8ad10d9bafd30
2017-09-07 12:22:29 +01:00
Marco Castelluccio ebceaf00d0 Bug 1397505 - Only support dumping/resetting coverage counters with GCC builds. r=froydnj
--HG--
extra : rebase_source : c6f8662eaac48a5d6941db5e582686ce5c6b8a47
2017-09-07 00:31:03 +02:00
James Graham f06f568fa1 Bug 1397218,1397219 - Disable unstable WebDriver tests, a=testonly
MozReview-Commit-ID: L2fcQmrWrql
2017-09-07 12:50:51 +01:00
James Graham e68d4f0f7f Bug 1397217 - Disable WebRTC ontonechange test for instability, a=testonly
MozReview-Commit-ID: 88EAMfYx6zd
2017-09-07 12:50:50 +01:00
James Graham ed28ee1f3e Bug 1397215 - Fix --exclude and --include arguments to wptrunner, r=me
We need to set_default when creating an empty IncludeManifest so that skip is set.
This is pretty unfortunate.

MozReview-Commit-ID: 43Vwtu2bhvn
2017-09-07 12:50:50 +01:00
Andreas Farre f817025d8f Bug 1397215 - Update wpt metadata, a=testonly
MozReview-Commit-ID: 14chwCQkvs0


--HG--
rename : testing/web-platform/meta/html/user-interaction/focus/tabindex-focus-flag.html.ini => testing/web-platform/meta/html/editing/focus/tabindex-focus-flag.html.ini
rename : testing/web-platform/meta/image-decodes/image-decode-iframe.html.ini => testing/web-platform/meta/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html.ini
rename : testing/web-platform/meta/image-decodes/image-decode-path-changes.html.ini => testing/web-platform/meta/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes.html.ini
rename : testing/web-platform/meta/image-decodes/image-decode.html.ini => testing/web-platform/meta/html/semantics/embedded-content/the-img-element/decode/image-decode.html.ini
2017-09-07 12:50:50 +01:00
James Graham 7c95410c7b Bug 1397215 - Update web-platform-tests to revision 7abe12a95a33cf1906182c1e56da37a32effce3f, a=testonly
MozReview-Commit-ID: 7EKrQudqd4D


--HG--
rename : testing/web-platform/tests/app-uri/resources/ExamPLE/mmY/index.html => testing/web-platform/tests/XMLHttpRequest/resources/pass.txt
rename : testing/web-platform/tests/css/css-ui-3/support/nav-dir-target-001-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-dir-target-001-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-dir-target-002-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-dir-target-002-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-dir-target-003-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-dir-target-003-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-dir-target-004-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-dir-target-004-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-dir-target-005-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-dir-target-005-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-down-009-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-down-009-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-down-010-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-down-010-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-down-011-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-down-011-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-down-012-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-down-012-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-down-013-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-down-013-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-left-009-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-left-009-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-left-010-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-left-010-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-left-011-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-left-011-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-left-012-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-left-012-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-left-013-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-left-013-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-right-009-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-right-009-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-right-010-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-right-010-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-right-011-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-right-011-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-right-012-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-right-012-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-right-013-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-right-013-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-up-009-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-up-009-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-up-010-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-up-010-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-up-011-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-up-011-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-up-012-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-up-012-frame.html
rename : testing/web-platform/tests/css/css-ui-3/support/nav-up-013-frame.html => testing/web-platform/tests/css/css-ui-4/support/nav-up-013-frame.html
rename : testing/web-platform/tests/fullscreen/api/element-ready-check-enabled-flag-not-set-manual.html => testing/web-platform/tests/fullscreen/api/element-ready-check-not-allowed-manual.html
rename : testing/web-platform/tests/html/user-interaction/focus/tabindex-focus-flag.html => testing/web-platform/tests/html/editing/focus/tabindex-focus-flag.html
rename : testing/web-platform/tests/image-decodes/image-decode-iframe.html => testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html
rename : testing/web-platform/tests/image-decodes/image-decode-path-changes.html => testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes.html
rename : testing/web-platform/tests/image-decodes/image-decode.html => testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode.html
2017-09-07 12:50:49 +01:00
Olli Pettay ecbbad31ed Bug 1378092 - Consider to remove MaybeGC from AutoEntryScript::~AutoEntryScript(), r=jonco
--HG--
extra : rebase_source : 0a2904c0204e13e15be4289c111457e1d20c1330
2017-09-07 09:28:25 +01:00
Jan de Mooij 1c43dd975e Bug 1395919 - Don't copy the unknown-properties flag in AddPropertyTypesAfterProtoChange. r=bhackett 2017-09-07 12:51:45 +02:00
Sebastian Hengst af505f8fc9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-07 12:42:38 +02:00
Sebastian Hengst 8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Andreas Farre e399c1d61e Bug 1396368 - Follow up fix: Fixed Windows build error. CLOSED TREE 2017-09-07 11:55:11 +02:00
Jan de Mooij 06c4b26692 Bug 1397026 - Make sure JSOP_INIT* IC behavior matches [[DefineOwnProperty]] instead of [[Set]]. r=anba 2017-09-07 11:28:58 +02:00
Dão Gottwald 4806455284 Backed out changeset 633d738656d5 (bug 1383051) for causing bug 1396281
MozReview-Commit-ID: FUYZSbgaiqx
2017-09-07 10:55:05 +02:00
Dão Gottwald 9593299783 Backed out changeset b440aaae26a1 (bug 1383051) for causing bug 1396281
MozReview-Commit-ID: 5gys7aa0vrv
2017-09-07 10:54:51 +02:00
Andreas Farre e9f03ed87b Bug 1396368 - Update mTopInnerWindow before unlinking it. r=bkelly 2017-09-07 10:15:48 +02:00
Andrea Marchesini d5e9568981 Bug 791440 - nsGlobalWindow::SetInitialPrincipalToSubject should check the existence of mDoc, r=qdot 2017-09-07 10:06:29 +02:00
Brian Birtles eda7cfac2e Bug 1365855 - Drop comment about needing to update SMIL animation styles in ServoRestyleManager::UpdateOnlyAnimationStyles; r=hiro; DONTBUILD
Unlike GeckoRestyleManager::UpdateOnlyAnimationStyles which is called from
*both* GeckoRestyleManager::ProcessPendingRestyles and FlushThrottledStyles,
ServoRestyleManager::UpdateOnlyAnimationStyles is only called from
FlushThrottledStyles which is what we use to update transform animations before
doing hit-testing. In this case, there doesn't appear to be any situation where
throttled SMIL animations need to be updated since SMIL animations are only
throttled when they apply to display:none content (bug 1209405 and bug 1322970)
in which case they should not affect hit testing.

MozReview-Commit-ID: 4bt7hCSa7Xr

--HG--
extra : rebase_source : 72641ee76a953357a00cb58b993a4316a86be618
extra : amend_source : 97b7053710039859dfe18c073c6414b129030757
2017-09-07 16:24:12 +09:00
Christoph Kerschbaumer d43805d4f6 Bug 1396320: Fix CSP sandbox regression for allow-scripts. r=dveditz 2017-09-07 09:11:38 +02:00
Paolo Amadini fe96089fe4 Bug 1387416 - Place the search bar in the customization palette for new profiles. r=Gijs
MozReview-Commit-ID: Tq8YrZWG6P

--HG--
extra : rebase_source : 2e02e0a809d08ff26291a027b73a54668d6d5f9d
2017-09-06 13:09:27 +01:00
Nicholas Nethercote 42a8532893 Bug 1396694 (part 2) - Replace nsIAtom.idl with nsIAtom.h. r=froydnj.
Now that nsIAtom is non-scriptable, a .idl file isn't needed.

I made the new nsIAtom.h file by starting with a generated nsIAtom.h file, and
then cleaning it up and removing some stuff that wasn't necessary.

--HG--
extra : rebase_source : 9655fd38984512bd96cf5555048f7774414f6d92
2017-09-05 16:07:32 +10:00
Nicholas Nethercote 4a2bc82d4c Bug 1396694 (part 1) - Make nsIAtom non-scriptable. r=froydnj.
This also lets us remove a couple of IDL methods.

--HG--
extra : rebase_source : a62d3f340c77ae8028e35aa9f01f72c5eadf0ed1
2017-09-05 16:06:43 +10:00
Kris Maglione d6b735f9d2 Bug 1397536: Avoid newURI overhead for MatchPattern. r=ehsan,mixedpuppy
Ehsan, can you please review the (trivial) WebIDL changes, and Shane the
WebRequest logic?

The change to allow strings in MatchPattern arguments removes a huge amount of
XPConnect overhead that accumulates when creating nsIURI objects for
WebRequest processing.

The change to re-use existing URI objects removes a huge amount of URI
creation overhead.

MozReview-Commit-ID: 3DJjAKJK1Sa

--HG--
extra : rebase_source : 585a1c3c136ed1c5014f680ae81f635c8d1a2931
2017-09-06 21:56:45 -07:00
Kris Maglione 025991aa30 Bug 1396856: Part 4 - Update WebRequest.jsm to use ChannelWrapper bindings. r=mixedpuppy
MozReview-Commit-ID: 7s7SOQ1XVaw

--HG--
extra : rebase_source : 9fb6fabffd3c32e52e4b94dba476483a7118c660
2017-09-06 21:52:24 -07:00
Kris Maglione d55de0c717 Bug 1396856: Part 3 - Add a WebIDL wrapper class for necko channels. r=ehsan,mixedpuppy
Ehsan, can you please review the DOM bindings, and Shane the request logic?

The bulk of the overhead WebRequest API is in its access to nsIChannel and
friends through XPConnect. Since it's not really feasible to convert channels
to use WebIDL bindings directly, this generic channel wrapper class serves the
same purpose.

MozReview-Commit-ID: 4mNP8HiKWK

--HG--
extra : rebase_source : 111687dd0925619b5d93447aecffacd5d53532ef
2017-09-06 14:38:23 -07:00
Kris Maglione c79059605f Bug 1396856: Part 2 - Add top outer window ID to LoadInfo. r=ehsan
The WebRequest API needs to know if a given window ID is at the top level, for
various reasons. It currently figures this out by mapping a channel's load
context to a <browser> element, which tracks its current top outer window ID.
But this is inefficient, and not friendly to C++ callers.

Adding the top window ID to the load info simplifies things considerably.

MozReview-Commit-ID: Fy0gxTqQZMZ

--HG--
extra : rebase_source : bb5b1e1b3294004ca5e713fc88c4e20652296e53
2017-09-06 14:25:23 -07:00
Kris Maglione 9cf6734391 Bug 1396856: Part 1 - Remove spread call fallback overhead in event dispatch. r=zombie
MozReview-Commit-ID: 3c5p9OvRqHI

--HG--
extra : rebase_source : e145380ace787bab683808ef3894652bb1baee8d
2017-09-05 11:20:43 -07:00
Nicholas Nethercote 06f76edc17 Bug 1276488 - Add diagnostics about Prefs startup failures. r=froydnj.
--HG--
extra : rebase_source : ee3b8c2592e4dcf43c395cb805a88cfa385ce7ef
2017-09-06 15:17:05 +10:00
Nicholas Nethercote 5bd03193bd Bug 1397579 - Report stylesheet memory usage under "layout/style-sheets". r=heycam.
Currently it's not under "layout/", for no clear reason.
2017-09-07 14:36:42 +10:00
Nicholas Nethercote f92bd5e9ab Bug 1393642 (follow-up) - Fix potential leak in HTMLEditor methods. r=masayuki.
As written, these functions will leak if they are passed strings that don't
match static atoms. In practice, all strings passed *do* match static atoms,
but let's fix it anyway in case that changes in the future.

--HG--
extra : rebase_source : 01685428e7dfc577e63bb6423382817359623151
2017-09-07 12:20:51 +10:00
Aaron Klotz 066806b179 Bug 1383501: Assert that com proxy is non-null before calling SendPDocAccessibleConstructor; r=yzen
MozReview-Commit-ID: CuIXyoe4jsj
2017-09-06 10:40:55 -06:00
Andrew Osmond 391b45bd79 Bug 1397223 - Gracefully handle failures in SurfaceCacheImpl::StartTracking. r=tnikkel
When the surface cache starts tracking an unlocked surface, it must
insert it into the expiration tracker, so that it can be freed later if
it is remains unused. ExpirationTrackerImpl::AddObjectLocked can fail
due to out-of-memory conditions or during shutdown, which we previously
ignored, and could leave us in a state where we think the surface is in
the tracker but is not. When we later try to mark the surface as used in
the tracker, it will hit a release assert because it doesn't exist. Now
we handle the insertion failure by discarding the surface. Marking the
surface as used can itself encounter a similar issue, and we handle it
the same way.

MozReview-Commit-ID: Kv6l0znnG48
2017-09-06 20:17:04 -07:00
Andrew Osmond efb55b8c17 Bug 1397235 - Ensure that we reset factor-of-2 mode for an ImageSurfaceCache when it becomes empty. r=tnikkel
An ImageSurfaceCache cannot enter factor-of-2 mode without a minimum
number of surfaces being present in its cache. However those surfaces
can be purged from the cache through various means (expire due to being
disuse, volatile buffers purged, etc). Also, it is entirely possible
that all the surfaces get purged, but the cache itself remains. Since
factor-of-2 mode requires at least one surface (to get the owning image
and its native size), we need to handle the case when the cache is
emptied appropriately. As such, we now reset the factor-of-2 mode (and
its pruned state) to the default (false) if we transition from non-empty
to empty.

MozReview-Commit-ID: EVaEqW59Asv
2017-09-06 20:16:31 -07:00
Zibi Braniecki 0e1ced7d71 Bug 1395871 - Open toolbar menus on mousedown, rather than oncommand.
MozReview-Commit-ID: A3P4QBBgcB8

--HG--
extra : rebase_source : 2a1b660f6489c5aece8f8b25935ad5799779629d
2017-09-01 01:54:34 -07:00
JW Wang ac6ee9f873 Bug 1395802. P4 - we don't need lock since mChannelStatistics is always accessed on the main thread. r=cpearce
MozReview-Commit-ID: KHnhPaSTSFr

--HG--
extra : rebase_source : 0129e5d729f2ed6f5ed8b9f1c4e89b128c9f6868
extra : intermediate-source : 8c093999ba40f7ce48dc3c3cc0d10117b710868a
extra : source : b5b2a5d89b2aa25ee644e8ea3c06804d2c63cdba
2017-09-01 14:32:00 +08:00
JW Wang d3f14ac69d Bug 1395802. P3 - ensure mChannelStatistics.AddBytes() to happen on the main thread. r=cpearce
MozReview-Commit-ID: CbDl9mWZDFs

--HG--
extra : rebase_source : 6f66f540146ea7ff43543f66d4f7c450c98d7a68
extra : intermediate-source : 1834aa47f8ff342e36a1fe4e8f73c7a0aa1906c6
extra : source : de6706f3fcd29ca81254e9b20f391cc28bc3a57a
2017-09-01 14:28:06 +08:00
JW Wang 959a1c210a Bug 1395802. P2 - assert ChannelMediaResource::GetDownloadRate() runs on the main thread. r=cpearce
The only caller is ChannelMediaDecoder::GetStatistics() which runs on the main thread.

MozReview-Commit-ID: CYg3Z3rmlHd

--HG--
extra : rebase_source : c3bf0083522256a6c4f3e83bc817ee7d0ce398bf
extra : intermediate-source : 12bad420f0f3eb9a3993fada2f919d61f60ad392
extra : source : 6044445039445631bbb6cd66607b6f7f72547f18
2017-09-01 14:19:51 +08:00
JW Wang 7183d8c7c6 Bug 1395802. P1 - add AbstractMainThread() to MediaResourceCallback. r=cpearce
This is required by P3 to preserve the ordering. E.g. we want
mChannelStatistics.AddBytes() to happen before the new data is consumed
by the decoder and is made observable to the main thread. Using
SystemGroup::Dispatch() won't guarantee the ordering.

MozReview-Commit-ID: 7MP0CzTGpOs

--HG--
extra : rebase_source : 1161b7c713f57625f38b70714bb8684c2edecb2a
extra : source : 22b362b56f218acb70cc7ce3c0fd0ea113563681
2017-09-06 15:12:34 +08:00
Phil Ringnalda 75f9cdbd7e Backed out 3 changesets (bug 1394603) for reftest syntax error
CLOSED TREE

Backed out changeset 44117208f321 (bug 1394603)
Backed out changeset 31088c59d895 (bug 1394603)
Backed out changeset 20551d68f602 (bug 1394603)

MozReview-Commit-ID: 4F4jSQ8GyfG
2017-09-06 22:48:55 -07:00
Bobby Holley 52ba410a6e Bug 1397052 - Don't update |result| after the acquire fence in nsThreadSafeRefCnt::operator--. r=froydnj
MozReview-Commit-ID: 1Yp4kFXA5gV
2017-09-06 21:55:12 -07:00