Skip to content

[do not merge] bisecting websocket problems - #70

Closed
servo-wpt-sync wants to merge 90 commits into
jdm:masterfrom
servo-wpt-sync:servo_export_21033
Closed

servo-wpt-sync wants to merge 90 commits into
jdm:masterfrom
servo-wpt-sync:servo_export_21033

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Reviewed in servo/servo#21033.

frivoal and others added 30 commits June 5, 2018 09:17
Text from the spec
(https://drafts.csswg.org/css-contain/#containment-layout):
  "... if the element is an internal table element other than
  display: table-cell, or if the element is an internal ruby element,
  or if the element’s principal box is a non-atomic inline-level box,
  layout containment has no effect."

The patch disables "contain: layout" for internal table elements
but table cells, internal ruby elements and
non-atomic inline-level boxes.

Some of the new tests pass or fail incidentally due to crbug.com/785212,
once that's fixed all the tests should be working as expected.

BUG=843329
TEST=external/wpt/css/css-contain/contain-layout-008.html
TEST=external/wpt/css/css-contain/contain-layout-009.html
TEST=external/wpt/css/css-contain/contain-layout-010.html
TEST=external/wpt/css/css-contain/contain-layout-011.html
TEST=external/wpt/css/css-contain/contain-layout-012.html
TEST=external/wpt/css/css-contain/contain-layout-013.html
TEST=external/wpt/css/css-contain/contain-layout-014.html

Change-Id: I5f0893a9ce69dc8e76cf16acb1b8556bf0e02adf
Reviewed-on: https://chromium-review.googlesource.com/1087268
Reviewed-by: Emil A Eklund <[email protected]>
Commit-Queue: Manuel Rego Casasnovas <[email protected]>
Cr-Commit-Position: refs/heads/master@{#564631}
Imported WebKit's test as a WPT.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1465291
gecko-commit: bb430edf217ece760c5fda5796d776f2256f90e3
gecko-integration-branch: mozilla-inbound
gecko-reviewers: xidorn
…tent.py

The changes made to echo-content.py are the same as the ones made in Bug
1435781.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1351193
gecko-commit: 74219e6cc8b0baab1c2eb7c7127007e3b7bfcd33
gecko-integration-branch: mozilla-inbound
gecko-reviewers: nika
It was registering a service worker for each test case, and had a lot
of test cases.

This changes the file to register a single service worker at the
beginning, and unregister it at the end.

Bug: 847787
Change-Id: Ic2536824a3c57e86bb5e042287e9e62e6222ad9a
Reviewed-on: https://chromium-review.googlesource.com/1087188
Reviewed-by: Makoto Shimazu <[email protected]>
Commit-Queue: Matt Falkenhagen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#564770}
Referrer handling spans multiple algorithms in multiple specs, so I leave only
the entry points of them.

For top-level module script loading and static imports, referrer is determined
based on the "outside settings":

  "Fetch a module worker script graph given url, outside settings, destination,
  the value of the credentials member of options, and inside settings."

https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model

For dynamic imports, referrer is determined based on the "referencing script's
settings object". In this case, it's "inside settings":

  Step 2.4: "Fetch a module script graph given url, referencing script's settings object,
  "script", and options. Wait until the algorithm asynchronously completes with
  result."

https://html.spec.whatwg.org/multipage/webappapis.html#hostimportmoduledynamically(referencingscriptormodule,-specifier,-promisecapability)

These tests are still failing. Subsequent CLs will fix them.

Bug: 842553
Change-Id: I3855b91c7e6ba93f5c99fb63b24b6274e6b43211
Reviewed-on: https://chromium-review.googlesource.com/1088339
Commit-Queue: Hiroki Nakagawa <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Reviewed-by: Matt Falkenhagen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#564811}
Text form the spec
(https://drafts.csswg.org/css-contain/#containment-layout):
  "If the contents of the element overflow the element,
  they must be treated as ink overflow."

The patch modifies LayoutBox::LayoutOverflowRectForPropagation()
so the overflowing contents of an element with "contain: layout"
are treated as ink overflow. That way they don't interfere at all
in the layout of its ancestors.

BUG=843320
TEST=external/wpt/css/css-contain/contain-layout-015.html

Change-Id: Iedd47edf46a0e4ce0e4102abe5881d25771fe0fa
Reviewed-on: https://chromium-review.googlesource.com/1087462
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Manuel Rego Casasnovas <[email protected]>
Cr-Commit-Position: refs/heads/master@{#564826}
[css-text-3] Add test for intrinsic sizing and overflow-wrap
Mention the need to setup the web server in the github tutorial
This adds webencodings as another vendored package, and moves both to
third_party (part of web-platform-tests#10922).
When chardet is installed, this makes the no-manifest case 7% faster.
While this means in the worst-case we parse almost the entire file
twice (when there's an entity at the end), the more common case is an
unsupported encoding (which, of course, is at the start), and the most
common case is never falling back. In the no-manifest case, this is
22% faster.
Change-Id: I7f467623d5476f717d73aeeaecdc69399c6b65f5
Reviewed-on: https://chromium-review.googlesource.com/1074584
Commit-Queue: Alice Boxhall <[email protected]>
Reviewed-by: Jonathon Kereliuk <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/master@{#564977}
Freezing can only work on hidden pages, currently there is no easy way
in webdriver that allows us to hide the page.

A new webdriver API is in the works to enable that, but meanwhile, for
all testing API, we have to couple hiding with freezing.

This CL does that and reenables the test with Network Service.

Bug: 837709, 848604
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Ib5c513aefb219cef38a563be81fe8abf4b354051
Reviewed-on: https://chromium-review.googlesource.com/1089354
Commit-Queue: Fadi Meawad <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565031}
Bug: 467127
Change-Id: I4176cb0e4216ced9434c5c84832df6d6a5cd37d3
Reviewed-on: https://chromium-review.googlesource.com/1089205
Reviewed-by: Chris Harrelson <[email protected]>
Commit-Queue: Aleks Totic <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565090}
These tests sometimes time out.

Bug: 850132
Change-Id: I90759388aadf121b6b744877d34bac3a61abfe53
Reviewed-on: https://chromium-review.googlesource.com/1089606
Reviewed-by: Takayoshi Kochi <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565180}
…ding on dedicated workers

This CL makes Document serve its settings object ("outside settings") to
WorkerGlobalScope based on the following HTML spec:

  Step 13. "Fetch a module worker script graph given url, outside settings,
  destination, the value of the credentials member of options, and inside
  settings."
  https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model

This SettingsObject is used as "fetch client settings object" for top-level
module script loading and static imports.

Before this CL, WorkerGlobalScope's settings object ("inside_settings_object")
is used as "fetch client settings object". This is obviously wrong and fails
some web-platform-tests. This change fixes them.

Change-Id: I87a78f38308e262425b848d99dc617dbddeb81e7
Bug: 842553, 845285
Reviewed-on: https://chromium-review.googlesource.com/1084133
Commit-Queue: Hiroki Nakagawa <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565199}
dheiberg and others added 25 commits June 8, 2018 21:22
…est.py, bypassing the server. Found and fixed a bug where passing a file larger than the buffer in InputFile caused the server to crash. Found and fixed a bug where seeking to a position before the current position and calling read() immediately after falsely tried to assert the positions of _buf_pos and _file_pos. Added tests for these bugs. (web-platform-tests#11415)
Some notes: this does not fully bring us to compliance to the current spec.
Instead, these are the fixes that I needed to make in order to make
css/geometry/interfaces.html pass with the DOMPoint changes in the previous
patches. I don't fully understand why that patch caused the test to fail the
way it did, but it ended up being easier to fix our code than understand why
the harness was falling over.

The DOMQuad::QuadBounds class was the source of some confusion for me. Now
that DOMRectReadOnly is a concrete class with members, I wanted to avoid
wasting them. However, the spec is unclear as to whether a DOMQuad's bound's
should be live -- that is because DOMQuad exposes DOMPoint, we can set its
points after retrieving a QuadBounds object. Our current code is live, setting
the points changes the QuadBounds. Chromium's current behavior is to never
update the QuadBounds object. I've left our behavior untouched in this patch
(and waste 4 doubles per QuadBounds object), but I am intending to file a bug
to understand what the intent of the spec is. I wonder if the author intended
the points to be DOMPointReadOnly instead. If so, we could simplify the
DOMRectReadOnly code and get rid of the virtual getters, which would be nice.

I also wasn't thrilled to put the DOMMatrix setters on the DOMMatrixReadOnly
class, but for brevity and simplicity of implementation, I've made them
public. I briefly considered making the setters protected on the ReadOnly
version of the class, but I'm not convinced that having to explicitly make
them public on the derived class is worth the extra copies of the names.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1186265
gecko-commit: d5eeebfcad8c217ae51b9b665446cf01ca5f65aa
gecko-integration-branch: central
gecko-reviewers: bz
This CL adds the following:
- KeyboardMap now requires the caller to be a top-level, secure
  browsing context
- Multiple calls to getKeyboardLayout() will now be given the same
  promise instead of it being timing dependent (the initial promise
  might get overwritten with the old logic)
- Sequential calls to getKeyboardLayout() still get their own promise
- All promise rejections will return a DOM exception (similar to
  KeyboardLock)
- I've cleaned up KeyboardLock a bit as well so it has similar
  logic/formatting to what I added to KeyboardMap
- Added several tests to KeyboardMap and fixed some failing cases

BUG=832811

Change-Id: I4a03f68c239cff42b8840e9513257384038f04b4
Reviewed-on: https://chromium-review.googlesource.com/1093474
Commit-Queue: Joe Downing <[email protected]>
Reviewed-by: Gary Kacmarcik <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565833}
This fixes both uses of object-association.js.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1419297
gecko-commit: 2762fef0119bcd3e78d36e78b0b75b5448d35c85
gecko-integration-branch: autoland
gecko-reviewers: smaug
Follow up for web-platform-tests#11255 which was unable to use add_dependency_idls because of web-platform-tests#10338.
* Test invalid pseudo-class starting with a valid one
* Test selector in :not() surrounded by spaces
* Test :nth-child used twice in selector
Using async functions and promise_tests instead of then()-chains and
async_tests. This makes them more readable, easier to maintain and
shorter.

Replaced RTCPeerConnection-helper.js function performOffer() with
exchangeOffer()/exchangeAnswer()/exchangeOfferAnswer().

Updated tests that were performing multiple offers to perform a full
offer/answer exchange whenever there were future offers to be made.
Previously it would perform half of an offer/answer cycle before
starting the next offer/answer, which under Unified Plan could lead to
some unexpected failures.

[email protected]

Bug: 777617
Change-Id: Ib0305d55af5aef7f49b5418d4ba44ded9c84d5c6
Reviewed-on: https://chromium-review.googlesource.com/1082434
Reviewed-by: Henrik Boström <[email protected]>
Commit-Queue: Henrik Boström <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565234}
…lculation.

Provide a suitable constraint space when calculating min/max inline
sizes for an orthogonal flow root. ComputeMinMaxSize() in NGBlockNode
typically ended up creating its zero-sized constraint space, which would
typically result in large block sizes (since there'd e.g. only be space
for one word per line).

Set percentage resolution size too, instead of leaving it at 0x0.
Percentages are often unresolvable (i.e. indefinite), in which case we
should of course refrain from resolving them, rather than resolving the
percentage against zero (which we used to do).

Add a DCHECK that we're always provided with a constraint space when
calculating min/max for orthogonal flows, as using the zero-size one
will not produce the correct result.

Bug: 848225
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Ic0aac380b2b733d3a55b25396c89584e4468899d
Reviewed-on: https://chromium-review.googlesource.com/1090845
Commit-Queue: Morten Stenshorne <[email protected]>
Reviewed-by: Aleks Totic <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565446}
removes test_state_change_event which initiates a "subtest" using
a shared peerconnection resource.

BUG=836871

Change-Id: I692bb5826c83d0d36d4169858ab2872d41c03b30
Reviewed-on: https://chromium-review.googlesource.com/1074696
Commit-Queue: Henrik Boström <[email protected]>
Reviewed-by: Henrik Boström <[email protected]>
Cr-Commit-Position: refs/heads/master@{#562844}
With this change, onsignalingstatechange always fires before the
setLocalDescription's promise resolves.

Before this change, signaling state changes were surfaced with callbacks
firing separately from the callback that setLocalDescription or
setRemoteDescription had completed. As a result, the result of a SLD/SRD
operation was surfaced in two PostTasks instead of one. This could lead
to flaky behavior where JavaScript task execeution cycles may or may not
execute between PostTasks which lead to undefined order. Also when the
signalingstatechange was surfaced to the JS thread the firing of the
event was delayed by a task execution cycle due to
ScheduleDispatchEvent.
- If both PostTasks were handled in the same cycle, the event firing
  would be scheduled and the promise resolved, such that the promise's
  then() is invoked just before the event fires (scheduled after
  promise). This is NOT in accordance with the spec.
- If onsignalingstatechange's PostTask was handled in its own cycle,
  the event would be scheduled such that by the time the
  setLocalDescription's callback's PostTask occurs resolving the
  promise, the event would fire before the promise's then(). This IS
  in accordance with the spec.

With this change, the onsignalingstatechange event is fired without
delay, and it is processed in by the same observer that handles the
SLD/SRD callback, so the order is always guaranteed to be the same.

In addition, this CL removes the usage of
WebRTCPeerConnectionHandlerClient::SignalingState and relies on the
webrtc::PeerConnectionInterface::SignalingState enum directly. This
is part of the Onion Souping work (crbug.com/787254).

Bug: 848768, 787254
Change-Id: I7bc10439c44c6ff6beab0289975295ff2e051b9c
Reviewed-on: https://chromium-review.googlesource.com/1085302
Commit-Queue: Henrik Boström <[email protected]>
Reviewed-by: Guido Urdaneta <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565291}
adds a pc.close() to all RTCPeerConnections in promise_test
and async_test. This is codemod-powered by this:
https://github.com/fippo/webrtc-codemods/blob/e844b2467cbb76a231c113366b2451cf248f53bc/wpt-rtcpeerconnection-no-helpers

BUG=836871

Change-Id: Iee84ef938bf477a55612b6012c6de464c6aea55b
Reviewed-on: https://chromium-review.googlesource.com/1049983
Commit-Queue: Henrik Boström <[email protected]>
Reviewed-by: Henrik Boström <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565591}
In RTCPeerConnection-setRemoteDescription-offer.html.

Bug: 777617
Change-Id: I43b579b6ca0cbc0e950a379dc519fac95ac18f58
Reviewed-on: https://chromium-review.googlesource.com/1095189
Reviewed-by: Guido Urdaneta <[email protected]>
Commit-Queue: Henrik Boström <[email protected]>
Cr-Commit-Position: refs/heads/master@{#565971}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.