Commit Graph

584653 Commits

Author SHA1 Message Date
Jim Blandy
e5e4521bc0 Bug 1443592: Part 5: Move LiveSavedFrameCache::getFramePtr to FramePtr::create. r=fitzgen
MozReview-Commit-ID: EZHdkBeMGnm

--HG--
extra : rebase_source : 350b3b792c58c43ba109fac5902543704ecdbd76
extra : intermediate-source : 082f193f8e8501ef4ccf15ae403eafee1bc594e7
extra : source : d529affcc8d8ae697e4f0e274c4c4ac39e835b57
2018-03-06 13:33:52 -08:00
Jim Blandy
5b7e019a17 Bug 1443592: Part 4: Enable saved frame caching for wasm debug frames. r=jandem
MozReview-Commit-ID: 623CUCku6S1

--HG--
extra : rebase_source : cd70af3cb8afa7d19383be65d5b8a58cab6bf29b
2018-03-06 13:13:39 -08:00
Jim Blandy
501050e8e1 Bug 1443592: Part 3: Change LiveSavedFrameCache::find to take a FramePtr, not a FrameIter. r=fitzgen
This obviates dynamic checks in find about the state of the iterator, since
they're covered by the fact that we were able to obtain a FramePtr at all.

This does mean that we have to pass the pc separately. But that's symmetrical
with the insert method, so it's okay.

MozReview-Commit-ID: FgsDjHB2il4

--HG--
extra : rebase_source : cea62332ed0f138a41d4898c43945d1f981c6c98
2018-03-06 11:42:36 -08:00
Jim Blandy
8c139613f3 Bug 1443592: Part 2: Move hasCachedSavedFrame flag access from FrameIter to LiveSavedFrameCache::FramePtr. r=fitzgen
Instead of using FrameIter::hasCachedSavedFrame, the code should instead try to
construct a FramePtr via LiveSavedFrameCache::getFramePtr, which returns a
Maybe<FramePtr>. If that is Some, then we know the frame at hand actually has a
flag, and we can test and set it.

Since the existing FrameIter::hasCachedSavedFrame screens out all wasm frames,
we change LiveSavedFrameCache::getFramePtr to do the same. However, the existing
behavior was incorrect, since wasm::DebugFrame does carry the flag; we'll fix
that in a later patch.

FrameIter::hasCachedSavedFrame asserted that jsJitFrame().isIonScripted(); this
is tested by isPhysicalIonFrame(), so that case is already covered.

MozReview-Commit-ID: 92wCc71s4nU

--HG--
extra : rebase_source : 54f60fbf298037448d9c051df3419df2a80f17d2
2018-03-06 11:28:53 -08:00
Jim Blandy
5866349735 Bug 1443592: Part 1: Introduce opaque LiveSavedFrameCache::Key type for cache keys. r=fitzgen
By design, the LiveSavedFrameCache holds the addresses of both live and dead
stack frames. This change wraps those addresses in an opaque type that can only
be compared for equality with other such values, and provides no interface to
retrieve the underlying pointer, ensuring statically that we will not
accidentally use a cache key to access memory.

MozReview-Commit-ID: 9Wom5gFVQls

--HG--
extra : rebase_source : e3dff595085973f1f10f57a67c192656c0bcd866
2018-03-05 18:03:56 -08:00
Boris Zbarsky
8b2e5c1850 Bug 1444004. Implement Event.prototype.srcElement as an alias for .target, nightly-only. r=smaug
MozReview-Commit-ID: JhKdc07CVsL
2018-03-07 23:38:14 -05:00
Cosmin Sabou
df9b953240 Merge mozilla-central to inbound. a=merge on a CLOSED TREE 2018-03-08 07:10:06 +02:00
Cosmin Sabou
8db07ec478 Backed out changeset 5138dcf1eddd (bug 1443558) for wpt permafailing on /service-workers/service-worker/client-navigate.https.html. a=backout 2018-03-08 07:05:18 +02:00
Boris Zbarsky
15f6ca70fd Backed out changeset 52d86f152c2d because it included bits that shouldn't have been in there leading to a CLOSED TREE.
MozReview-Commit-ID: KWl43hdIGN2
2018-03-07 23:35:48 -05:00
Cosmin Sabou
aba9ad6f65 Merge inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationListenerTest.kt => mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationDelegateTest.kt
2018-03-08 05:59:30 +02:00
Nathan Froyd
87bc1e3aa8 Bug 1443932 - part 2 - lower the default stack size for image decoder threads; r=tnikkel
These threads should not have deep stacks, and as we can have a number
of them running simultaneously, it's beneficial to set the stack size to
something reasonably low.
2018-03-07 20:33:17 -05:00
Nathan Froyd
e7492f2d00 Bug 1443932 - part 1 - add nsIThreadManager::kThreadPoolStackSize; r=erahm
A lot of our thread pools use the default stack size for the platform
they're on, which can be rather large (8MB, usually, on Linux and OS X)
and is probably too much for the typical thread in the thread pool
regardless.  SharedThreadPool already has some logic for selecting a
reasonable stack size for worker threads; let's move that logic to
nsIThreadManager so that logic (and constant) can be shared more
broadly.  (That we already have a couple of instances of
SharedThreadPool usage solely for this constant suggests that it is a
concept that should be available in a more central location.)
2018-03-07 20:33:17 -05:00
Noemi Erli
81ad7b78f9 Backed out 3 changesets (bug 1443660, bug 1443659, bug 1443658) for android-checkstyle bustage on a CLOSED TREE
Backed out changeset c8275e1f531e (bug 1443659)
Backed out changeset bbb5759485fe (bug 1443660)
Backed out changeset 69b649d8c1d1 (bug 1443658)
2018-03-08 02:53:31 +02:00
shindli
8e9217d36a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-08 02:27:35 +02:00
shindli
568f98c908 Merge inbound to mozilla-central. a=merge 2018-03-08 02:20:08 +02:00
shindli
8969dbf20d Merge autoland to mozilla-central. a=merge 2018-03-08 02:18:59 +02:00
James Willcox
e8abe08540 Bug 1443659 - Rename GeckoSession.openWindow and closeWindow r=esawin,droeh
MozReview-Commit-ID: 1zhNRw2OJ7y
2018-03-07 17:44:44 -06:00
James Willcox
8120c9ba80 Bug 1443660 - Rename NavigationDelegate.onLoadUri() to onLoadRequest() r=jchen,esawin
MozReview-Commit-ID: o5NHVH6BMo
2018-03-07 17:44:42 -06:00
James Willcox
51b9d6b539 Bug 1443658 - Use an integer for target in NavigationDelegate.onLoadUri() target r=esawin
MozReview-Commit-ID: AXv8eHQ9sgG
2018-03-07 17:44:40 -06:00
Boris Zbarsky
ca39c61532 Bug 1443652 another followup. Remove wpt .ini file that I thought I had removed.
MozReview-Commit-ID: 74gFkSrtFvA
2018-03-07 18:03:10 -05:00
Robert Strong
022768cb2a bug 1443935 - make it so browser_updatesCantApply.js test passes when it is run with the ability to elevate. r=mhowell
Locks the file in the updates directory instead of the file in the app directory.
2018-03-07 14:12:22 -08:00
ffxbld
61f1c5bba8 No bug, Automated blocklist update from host bld-linux64-spot-302 - a=blocklist-update 2018-03-07 12:18:54 -08:00
ffxbld
bc86ab931f No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-07 12:18:51 -08:00
ffxbld
44e48d690a No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-07 12:18:47 -08:00
Michael Kaply
5436df272b Bug 1442738. Fix test reference removed engine. r=bustag CLOSED TREE
--HG--
extra : amend_source : 265e3152421095af3bfd34fc0ad3e38ff9edb124
2018-03-07 11:03:45 -06:00
Nathan Froyd
5e8b2bd9fd Bug 1443587 - part 5 - more efficient string serialization; r=chutten
The code for serializing an EventKey in SerializeEventsArray does
something peculiar: it creates a temporary array of nsCStrings, copies
the appropriate strings from the event info for the key, and then
converts those into JavaScript strings.  But we shouldn't need to do any
copying into the temporary array.  We can do everything directly on the
strings from the event info themselves.

It seemed best to introduce a ToJSString for this purpose, which comes
in handy in a couple other places as well.
2018-03-07 11:00:44 -05:00
Nathan Froyd
e479d9f1aa Bug 1443587 - part 4 - more efficient snapshot creation; r=chutten
Once we've created the array of events for a given process, there's no
need to copy it in the array for all process events.  We can Move() it
instead, which is more efficient.
2018-03-07 11:00:44 -05:00
Nathan Froyd
9dc3e4fa34 Bug 1443587 - part 3 - don't copy ChildEventData; r=chutten
We were copying the event, rather than taking a reference to it.  Let's
do the latter instead of the former.
2018-03-07 11:00:44 -05:00
Nathan Froyd
c3d9ab947d Bug 1443587 - part 2 - improve construction of DynamicEventInfos; r=chutten
When constructing DynamicEventInfo, we can require the extra keys to be
passed in by rvalue reference, rather than copying the entire array.
When registering dynamic events, we also don't need to construct an
entirely new nsCString to pass to the constructor; we can simply pass
the nsACString reference we received and go from there.
2018-03-07 11:00:44 -05:00
Nathan Froyd
472a014c69 Bug 1443587 - part 1 - make EventInfo string getters return dependent strings; r=chutten
These methods are returning nsCString wrappers for static char arrays;
we only need to return nsDependentCStrings, rather than allocating and
copying entirely new nsCString objects.
2018-03-07 11:00:44 -05:00
Jan de Mooij
d7a8ae09e2 Bug 1441012 - Don't attempt to inline scripts we know Ion cannot compile. r=nbp
--HG--
extra : rebase_source : 7cab8920a82577a94f280b42f9d46d384533bb59
2018-03-07 16:51:45 +01:00
Sotaro Ikeda
5e1a7f84b4 Bug 1441498 - Protect mCompositorVsyncDispatcher by lock. r=kats
mCompositorVsyncDispatcher is created and destroyed on main thread. But it is
accessed from Compositor thread or VSyncBridge thread. To avoid race condition
between main thread and Compositor thread/VSyncBridge thread,
mCompositorVsyncDispatcher needs to be protected by lock.
2018-03-07 10:53:05 -05:00
moz-wptsync-bot
21ccca19a4 Bug 1443558 - [wpt-sync] Update web-platform-tests to 6d85a3b422cab97d032ad3db47cb741ca364185f, a=testonly
wpt-head: 6d85a3b422cab97d032ad3db47cb741ca364185f
wpt-type: landing
2018-03-07 15:49:58 +00:00
moz-wptsync-bot
f81daa2051 Bug 1437067 [wpt PR 9400]- Update wpt metadata, a=testonly
wpt-pr: 9400
wpt-type: metadata
2018-03-07 15:49:58 +00:00
Javier Fernandez
7a6288e430 Bug 1437067 [wpt PR 9400] - [css-align] justfy-items accepts 'legacy' and drops support for 'auto', a=testonly
Automatic update from web-platform-tests
The syntax of the 'justify-items' property accepts a new 'legacy' value,
replacing the 'auto' value which is now parsed as invalid.

https://github.com/w3c/csswg-drafts/issues/1318

This change affects also to the 'place-items' shorthand, which doesn't
accept 'auto' and, for the time being, neither 'legacy'.

Link to the intent-to-ship-and-remove request:

https://groups.google.com/a/chromium.org/d/msgid/blink-dev/552753c1-9b2f-bb01-4fed-2ae621f2398e%40igalia.com?utm_medium=email&utm_source=footer

Bug: 726147, 726148
Change-Id: I219de66b813d350fe33f00a1d4369bed8e9a2350
Reviewed-on: https://chromium-review.googlesource.com/903162
Commit-Queue: Javier Fernandez <jfernandez@igalia.com>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535593}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 6d85a3b422cab97d032ad3db47cb741ca364185f
wpt-pr: 9400
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:57 +00:00
Victor Costan
bfaa8756da Bug 1436996 [wpt PR 9435] - IndexedDB WPT: Break down interleaved-cursors test., a=testonly
Automatic update from web-platform-tests
The test is currently flaky on the CQ (see associated bug) due to timing
out. This CL breaks down the test in a -small and a -large file. The
size of the largest test is also reduced from 500 cursors to 250
cursors. The two changes combined should greatly reduce the chance of
timeouts.

Bug: 708175
Change-Id: Ic58c59740a0176e6bc5e6e87b66c5d772a67526a
Reviewed-on: https://chromium-review.googlesource.com/908248
Commit-Queue: Joshua Bell <jsbell@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535411}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 13b72a6d7631a855aec02993c1ae170d096de8ea
wpt-pr: 9435
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:57 +00:00
moz-wptsync-bot
b6fbbdac35 Bug 1441367 [wpt PR 9402]- Update wpt metadata, a=testonly
wpt-pr: 9402
wpt-type: metadata
2018-03-07 15:49:56 +00:00
Chris Nardi
79cc5e1a79 Bug 1441367 [wpt PR 9402] - Add test for basic parsing of color(), a=testonly
Automatic update from web-platform-tests
Include a basic test for parsing of the color function defined in CSS Color 4. This is upstreamed from a test added by dino@apple.com in http://trac.webkit.org/changeset/208116/webkit.

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 3554b60bc35e5fc78eb4e8caa1ad38f4e6bf38ac
wpt-pr: 9402
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:56 +00:00
moz-wptsync-bot
bffcc5763d Bug 1436522 [wpt PR 9237]- Update wpt metadata, a=testonly
wpt-pr: 9237
wpt-type: metadata
2018-03-07 15:49:55 +00:00
Adam Powers
2a07978e1d Bug 1436522 [wpt PR 9237] - WebAuthn WD-07 api tests, a=testonly
Automatic update from web-platform-tests
new tests based on Working Draft 7

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 025a5577b9a881d14783aec39d4c6963647d09a0
wpt-pr: 9237
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:54 +00:00
Kent Tamura
199b8e2ec6 Bug 1436991 [wpt PR 9433] - custom-elements: document.createElementNS should not create HTMLUnknownElement for a valid custom element name, a=testonly
Automatic update from web-platform-tests
Document::CreatRawElement() should check CustomElement::IsValidName().
It failed only if the Document didn't have V0 RegistrationContext.

Bug: 809887
Change-Id: I4e5d283658673db3e1db15b136ca5729d29e2442
Reviewed-on: https://chromium-review.googlesource.com/908128
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535299}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: e05c355958eb0e673db72063c97dcb8f37a4c3d2
wpt-pr: 9433
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:54 +00:00
Morten Stenshorne
65416e67ef Bug 1436558 [wpt PR 9430] - [LayoutNG] Mild cleanup and bugfixing of end margin strut handling., a=testonly
Automatic update from web-platform-tests
Also some more documentation.

Tried to make the various situations a bit clearer, with documentation
and code. And shared code for layout abortion.

The code used to call MaybeUpdateFragmentBfcOffset() quite
unconditionally based on an *end* offset inside the block. I found it
confusing to use an end offset as a BFC start offset. The code was
correct, though, since MaybeUpdateFragmentBfcOffset() wouldn't do
anything if the BFC offset was already known (which would be the case
if had children with actual size, for instance, making for a strange
BFC offset in that case). We'll now only call
MaybeUpdateFragmentBfcOffset() if BFC offset is unknown.
That's the only time end_bfc_block_offset can actually be used as a BFC
start offset.

Fixed one bug, though: A block with explicit height:0 ate the input
margin, rather than letting it collapse through and propagate to
subsequent layout input nodes. The intention of the code was just to get
rid of the last child margin, since height was non-auto. Now we check if
we have a BFC offset before doing so. If we have BFC offset, it means
that no input margins should collapse through. And if we DON'T have a
BFC offset, leave the margins alone for subsequent layout input nodes.
Otherwise we'd just lose them.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Iec8cea316015c6d36ef6bab9acbe826513222b1d
Reviewed-on: https://chromium-review.googlesource.com/907549
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Emil A Eklund <eae@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535273}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 19b995f0100dcc3c163153bd7e0a32249d736034
wpt-pr: 9430
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:53 +00:00
moz-wptsync-bot
db3fa1afa0 Bug 1443501 [wpt PR 9357] - Update wpt metadata, a=testonly
wpt-pr: 9357
wpt-type: metadata
2018-03-07 15:49:53 +00:00
Wanming Lin
13b0c7cd53 Bug 1443501 [wpt PR 9357] - Adapt Accelerometer IDL tests to latest spec, a=testonly
Automatic update from web-platform-tests

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: cf2f544c43d6778eab52e4afbae89f617221b77a
wpt-pr: 9357
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:52 +00:00
moz-wptsync-bot
f6aefff8b1 Bug 1441364 [wpt PR 9255]- Update wpt metadata, a=testonly
wpt-pr: 9255
wpt-type: metadata
2018-03-07 15:49:52 +00:00
Florian Rivoal
5dca041057 Bug 1441364 [wpt PR 9255] - [css-writing-modes] Test parent of orthogonal flow with max-height, a=testonly
Automatic update from web-platform-tests
Written in support of w3c/csswg-drafts#2239

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 45961861800064e99c62216d6dc6b18af01341e5, d6d3f7267e817925131675bfc203c62bda96febe
wpt-pr: 9255
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:51 +00:00
moz-wptsync-bot
dd454fcdae Bug 1436497 [wpt PR 9352]- Update wpt metadata, a=testonly
wpt-pr: 9352
wpt-type: metadata
2018-03-07 15:49:50 +00:00
Hiroshige Hayashizaki
71b519edc3 Bug 1436497 [wpt PR 9352] - Check CORS using PassesAccessControlCheck() with supplied SecurityOrigin, a=testonly
Automatic update from web-platform-tests
Partial revert of https://chromium-review.googlesource.com/535694.

Bug: 799477
Change-Id: I878bb9bcb83afaafe8601293db9aa644fc5929b3
Reviewed-on: https://chromium-review.googlesource.com/898427
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Takeshi Yoshino <tyoshino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535176}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: c22b35ce5be0ab867e8d7933a24f1709a9da2460
wpt-pr: 9352
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:50 +00:00
Reza.Zakerinasab
70ece120d5 Bug 1436506 [wpt PR 9286] - drawImage with zero size canvas as the source image should throw, a=testonly
Automatic update from web-platform-tests
This change list corrects the behavior of 2D context drawImage to throw
an InvalidStateError exception when the source image is a canvas with
size zero.
It also matches the behavior for OffscreenCanvas and adds respective
wpt tests.

Associated spec change: https://github.com/whatwg/html/pull/3398

Bug: 805677
Change-Id: Id938af6683f5fc4e94e97327e4d729838f4bfb00
Reviewed-on: https://chromium-review.googlesource.com/893423
Commit-Queue: Mohammad Reza Zakerinasab <zakerinasab@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535123}

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/w3c/web-platform-tests/9286)
<!-- Reviewable:end -->

wpt-commits: 04c852bf64d1d30309fa963c8b7148959ae11b92
wpt-pr: 9286
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:49 +00:00
moz-wptsync-bot
6aa1f1ce7f Bug 1443192 [wpt PR 9315] - Update wpt metadata, a=testonly
wpt-pr: 9315
wpt-type: metadata
2018-03-07 15:49:49 +00:00