Skip to content

Implement Window.open and related infrastructure - #76

Open
servo-wpt-sync wants to merge 370 commits into
jdm:masterfrom
servo-wpt-sync:servo_export_20678
Open

servo-wpt-sync wants to merge 370 commits into
jdm:masterfrom
servo-wpt-sync:servo_export_20678

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Reviewed in servo/servo#20678.

offenwanger and others added 30 commits July 25, 2018 05:13
Merging presentation provider and magic window provider to get rid of
duplicate code that fetches data. Changing request session so that it
must always return at least one interface for getting data, allowing
some uniformity of getting sessions across devices.

Bug: 842025
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_layout_tests_slimming_paint_v2;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:linux_vr;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I587b314daf177619440a82f12471ea567b346caf
Reviewed-on: https://chromium-review.googlesource.com/1135831
Reviewed-by: Ian Vollick <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Klaus Weidner <[email protected]>
Reviewed-by: Bill Orr <[email protected]>
Commit-Queue: Anna Offenwanger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#577572}
Subsequent calls to session.end() should not result in
SessionNotCreatedException being raised.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1477978
gecko-commit: 59ab6acdee53af4b2b2ac27e2d7cb57c131e9530
gecko-integration-branch: mozilla-inbound
gecko-reviewers: whimboo
When pointer is locked, we still need to check ShouldGenerateAppCommand
and set event handled so that won't generate unnecessary navigate
appcommand when kExtendedMouseButtons is enabled. This causes unable
to preventDefault on mouse back/forward buttons to prevent navigation
while pointer is locked.

Bug: 852709
Change-Id: I5f75a68e36037210c38310f8d83825c5efdf311e
Reviewed-on: https://chromium-review.googlesource.com/1148886
Commit-Queue: Ella Ge <[email protected]>
Reviewed-by: Dave Tapuska <[email protected]>
Reviewed-by: Timothy Dresser <[email protected]>
Cr-Commit-Position: refs/heads/master@{#577889}
makes most new transceiver tests pass by avoiding addTrack(track)
which does not work in Firefox yet.
We earlier hashed all in-tree files when updating the manifest.
Relying on git hashes instead gives us a speedup of ~50%
when running |wpt manifest|

With reference to web-platform-tests#11388
…to margin blocks.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1471894
gecko-commit: 16989caa105538b382160c13cad8f1df0b41438d
gecko-integration-branch: autoland
gecko-reviewers: dholbert
Bug: 863557
Change-Id: I84e913d238dedf278b070afd9f3c79674373fc44
Reviewed-on: https://chromium-review.googlesource.com/1150290
Reviewed-by: Bill Orr <[email protected]>
Commit-Queue: Anna Offenwanger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#577972}
…#12165)

* Fix/simplify tests broken by change
* Remove redundant self object in selection/idlharness.window.js
… encoding to a single input.

DecodeURLEscapeSequences() decoded some parts of an input string in UTF-8,
and other parts of the string in isomorphic encoding. This behavior doesn't
make sense, is harmful against browser interoperability, and is used only
in 0.0013% of page views (only in scroll-to-fragment cases).

DecodeURLEscapeSequences() is used in many code paths, and we have usage
data only for scroll-to-framgnet. However this CL tries to remove this
weird behavior entirely.

Bug: 845824
Change-Id: Ib1cbbd3e1c26ebaaca7b3537b9732121835fdc9f
Reviewed-on: https://chromium-review.googlesource.com/1146535
Reviewed-by: Mike West <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/master@{#578151}
Created interface TrustedTypePolicy with readonly attribute name of type
DOMString
Added function createPolicy(const String& policyName) to
TrustedTypePolicyFactory class

Bug: 739170
Change-Id: Iada8bbdb697b24f450290d27e2673df3974fc2cd
Reviewed-on: https://chromium-review.googlesource.com/1148440
Commit-Queue: Orsolya Bernadett Batiz <[email protected]>
Reviewed-by: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/master@{#578271}
…ndered same as <input type=text>.

Non-macOS and macOS have different default padding for text-field <input>.
html.css specifies padding for macOS, and themeWin.css specified padding for
non-macOS only for specific input types, and unknown input types, which are
fell back to type=text, were not covered by themeWin.css.

Bug: 747752
Change-Id: I2165380868acf54eeb42dfa3109a989418a62c83
Reviewed-on: https://chromium-review.googlesource.com/1150940
Commit-Queue: Kent Tamura <[email protected]>
Reviewed-by: Yoshifumi Inoue <[email protected]>
Cr-Commit-Position: refs/heads/master@{#578281}
Earlier, the manifest generated using the file system didn't
honour .gitignore, leading to some weird differences between the
working-tree manifest and the one for HEAD.
This does slow down the working-tree manifest update by about 15%, though.
… stamp is behind from the start time to avoid negative timelime time at the very beginning of document load.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1444816
gecko-commit: f3def258192799c0cde243d20c0320dc59acfbb4
gecko-integration-branch: autoland
gecko-reviewers: birtles
To check that changes in P1 still work when layout is required.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1330375
gecko-commit: 28200567c44f70b54380ed5e9a5953186809f3ab
gecko-integration-branch: autoland
gecko-reviewers: heycam
…rm-tests#11649)

The Chrome WebDriver implementation uses `goog:` for Chrome-specific
settings in its capabilites. The capabilites used in the current test
suite does not use this prefix. This commit resolves that issue.
The test name was passed as a third argument to `ArrayBuffer.slice`, silently
ignored.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1414366
gecko-commit: 1b109587de90eeb98118c85f1186b37dc2bf1f15
gecko-integration-branch: central
gecko-reviewers: karlt
… lower or equal than the parameter to start.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1414366
gecko-commit: 7bbc44c1060828b620e18a5389811084260530ea
gecko-integration-branch: central
gecko-reviewers: karlt
)

Previously we set this window size when restoring all default
values for a session during test teardown. Which means that
the very first test after the browser has been started will
run with the browser window default size.

This change enforces that all tests use the default window
size of 800x600.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1478368
gecko-commit: c5c4d8725e4f2ae3ed4ab7be243415ce1905ddbe
gecko-integration-branch: central
gecko-reviewers: ato
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1392274
gecko-commit: 7412ecd735e203f7fc2cc4cfa12e75d91157d5dd
gecko-integration-branch: central
gecko-reviewers: ato
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1392274
gecko-commit: 3e36cda9759b22dedd7f069056e7b9e1c8b4a004
gecko-integration-branch: central
gecko-reviewers: ato
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1392274
gecko-commit: 240e44df6f74f4877d254c2de8abf8f633a68efd
gecko-integration-branch: central
gecko-reviewers: ato
…seStream

BUG=836871

Change-Id: I278b34cb305a13a029e84eaaeec57144e2858678
Reviewed-on: https://chromium-review.googlesource.com/1149364
Reviewed-by: Henrik Boström <[email protected]>
Commit-Queue: Philipp Hancke <[email protected]>
Cr-Commit-Position: refs/heads/master@{#578611}
CORSURLLoader uses network::ResourceRequest::request_initiator which
ignores iframe sandboxing, which is a bug. Let's add a simple test for
the behavior.

Bug: 867834
Change-Id: Ia45113503f98b3d18e31c785e703d29eee658d08
Reviewed-on: https://chromium-review.googlesource.com/1151167
Commit-Queue: Yutaka Hirano <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#578636}
TimothyGu and others added 23 commits August 9, 2018 12:13
…#8748)

Extend the implementation of the `Test#add_cleanup` method to detect
cases where the provided function returns a "thenable" object. In such
cases, defer test completion until all such eventual values settle. If
any eventual value is rejected, report a harness error (as this
represents an unpredictable state that may invalidate subsequent tests).

This behavior prevents tests from being run synchronously. In order to
promote predictability in test harness behavior (and to avoid
invalidating existing tests which rely on synchronicity), only expose
the new behavior for tests defined using the `promise_test` API (as
these tests were originally implemented to run in separate turns of the
event loop).

Introduce `Tests#set_status` in order to de-couple status setting from
remote context closing. This is necessary because uncaught errors may
require asynchronous cleanup, making it inappropriate to synchronously
close communication channels with remote contexts in such cases.

Ensure that this implementation does not introduce a new dependency on
the global `Promise` constructor in order to avoid interfering with
tests that do not require it (as doing so would invalidate those tests
in contexts where `Promise` is not available).

The return value of the function provided to `Test#add_cleanup` is only
meaningful for tests created with the `promise_test` API, and in those
cases, only when it is a "thenable" object. If a cleanup function
returns an invalid value, this may reflect a programming error that will
silently degrade test stability.

Detect cases where an invalid value is returned and trigger immediate
harness failure, helping contributors identify mistakes.

Extend test coverage to demonstrate that the new behavior functions as
expected and that these changes do not have unintended effects on
existing functionality.
…rm-tests#12386)

Fixes web-platform-tests#12378, by adding
the right depencies and the right global object depending on context.
… 'resize' properties

They are implemented behind the CSSLogical runtime flag.

Intent to Implement:
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/48OwfwZrbvI/A1XZFGkzAwAJ

Spec: https://drafts.csswg.org/css-logical/#directional-keywords

BUG=850004

TEST=external/wpt/css/css-logical/logical-values-float-clear.html
TEST=external/wpt/css/css-logical/logical-values-resize.html

The tests still have some failures because sideways writing modes have
not been implemented yet (http://crbug.com/680331).

Change-Id: Ieede2703368a44f3ce9996e917857226795ebaea
Reviewed-on: https://chromium-review.googlesource.com/1163667
Reviewed-by: Anders Ruud <[email protected]>
Reviewed-by: Yoav Weiss <[email protected]>
Commit-Queue: Oriol Brufau <[email protected]>
Cr-Commit-Position: refs/heads/master@{#581904}
The test 'Piping from an errored readable stream to an errored writable
stream' was misnamed, as the destination writable was erroring, not
errored. Rename it. Add a variant of the test where pipeTo() isn't
called until the destination is errored.

Split other tests for errored writables into erroring + errored versions.
…tests#12403)

The boilerplate has changed:
w3c/reffy#114

This change updates the files where *only* the boilerplate would
differ, files with other differences are left untouched.
The file "reduce.py" is not structured for direct execution, and it does
not appear to be reference by any other file in the wptrunner project.
In addition, it includes incorrect references to the `TestLoader` and
`TestFilter` classes, and it invokes their constructors with arguments
that do not match their supported parameters.

Because no other code invokes the `wptrunner.run_tests` function with
the `test_loader` keyword argument, the associated code path may also be
removed.
…atform-tests#12405)

Also add more objects in some of these tests.

XHR will now be tested against workers as well, and local tested
revealed a test will be failing due to an old TODO in Blink:
https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/xmlhttprequest/xml_http_request.idl?l=79&rcl=9c356a9697625b3c25856529908af0c3253dfa2c

A failing test for that is good :)
This CL introduced blink::mojom::WebUsbService implemented
by WebUsbServiceImpl in chrome/browser/usb which used to be
WebDeviceManager.
Paralleling with device::mojom::UsbDeviceManager, the new interface
aims to simplify the interactions with Blink, and a meaningless
argument of GetDevices() method has been reduced in this CL.
device::mojom::UsbChooserService will be merged to this interface in
subsequent CLs.

BUG=699790

Change-Id: I891c56460425c20d2e8d067f9335091f6945ae7d
Reviewed-on: https://chromium-review.googlesource.com/1151065
Commit-Queue: Donna Wu <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Reilly Grant <[email protected]>
Cr-Commit-Position: refs/heads/master@{#582108}
…eb-platform-tests#12387)

This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1369941
gecko-commit: e3a6f64071f2f1f82da639a7d09749839d5f053b
gecko-integration-branch: autoland
gecko-reviewers: dholbert
OOF elements with inline container that were not direct descendants
of container did not have their inline container set correctly.
This caused Google SERP page to display a menu incorrectly.

Test

Bug: 867307
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: Iefc78785d296c87d7fc1f34abe3980c0783d6818
Reviewed-on: https://chromium-review.googlesource.com/1165953
Commit-Queue: Aleks Totic <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/master@{#582139}
Note: this contains a change to the expected behaviour of test
runners.

Previously .any.js tests specifying a serviceworker variant generated
a url like foo.https.any.serviceworker.html. But that causes a problem
because that looks exctly like a url generated from a file named
foo.https.js. This ambiguity, together with the fact that wptrunner
wasn't actually looking at the https flag in the test id, but only in
the filename, meant that service worker tests weren't being run
properly.

This change stops adding .https. to serviceworker tests generated from
.any.js files and instead makes .serviceworker. in the test id
directly mean that the test should be loaded over https.
…led again

Also add WPT that check
- calling updateUI works
- calling updateUI more than once throws an exception

Change-Id: I4b8e1847a09fd84a087d4f4af996ccf19c9f212b
Reviewed-on: https://chromium-review.googlesource.com/1159073
Commit-Queue: Rayan Kanso <[email protected]>
Reviewed-by: Peter Beverloo <[email protected]>
Cr-Commit-Position: refs/heads/master@{#582140}
LayoutInline::LinesVisualOverflowBoundingBox() is expected to return
coordinates with a logical block coordinate. So we need to flip for
writing-mode vertical-rl.

Discovered while investigating why
wpt/css/css-position/position-sticky-writing-modes.html fails. It had
some weird repaint issues (that I discovered when picking the test
apart) that this CL fixes. That's not enough to fix the test, though.

Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: I9a8930cc6de01991592282491677327e3406acfb
Reviewed-on: https://chromium-review.googlesource.com/1170835
Reviewed-by: Aleks Totic <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#582222}
Bug: 872437
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Idb0d69320ddfa2dcfe02e493cd117573618459d5
Reviewed-on: https://chromium-review.googlesource.com/1169624
Commit-Queue: Xianzhu Wang <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Cr-Commit-Position: refs/heads/master@{#582299}
@servo-wpt-sync
servo-wpt-sync force-pushed the servo_export_20678 branch 2 times, most recently from 4cc6df5 to b504cd7 Compare August 10, 2018 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.