layout: Have ServoRestyleDamage immediately update flags on `LayoutImpl`
Instead of passing a damage variable around during a single layout, have the
damage update flags immediately on the LayoutImpl. This ensure that
damage from a restyle are not lost event when a layout query doesn't
need a display list or stacking context tree. In addition, it makes it
so that this is handled consistently across all different kinds of
layout (from queries or for display lists).
Testing: This should fix the test case from #40367. Fixes: #40367.
🔨 Triggering try run (#19068620726) for Linux (WPT)
Test results for linux-wpt from try job (#19068620726):Flaky unexpected result (45)
/FileAPI/url/url-with-fetch.any.worker.html (#21517)Revoke blob URL after calling fetch, fetch should succeed
promise_test: Unhandled rejection with value: object "TypeError: Network error occurred"
/IndexedDB/idbfactory_open.any.htmlCalling open() with version argument 1.5 should not throw.
assert_equals: version expected 1 but got 9007199254740991
/IndexedDB/idbobjectstore_delete.any.worker.html (#39069)delete() key doesn't match any records
assert_unreached: unexpected open.success event Reached unreachable code
/IndexedDB/idbrequest-onupgradeneeded.any.html (#38895)indexedDB.delete called from upgradeneeded handler/_mozilla/shadow-dom/move-element-with-ua-shadow-tree-crash.html (#39473)/_mozilla/webxr/create_session.https.htmlcreate_session
can't access property "simulateDeviceConnection", navigator.xr.test is undefined
/_mozilla/webxr/obtain_frame.https.htmlobtain_frame
promise_test: Unhandled rejection with value: object "TypeError: can't access property "simulateDeviceConnection", navigator.xr.test is undefined"
/_mozilla/webxr/sessionavailable.https.html/_webgl/conformance/context/user-defined-properties-on-context.html/_webgl/conformance/ogles/GL/swizzlers/swizzlers_065_to_072.html/_webgl/conformance/programs/gl-get-active-attribute.html/_webgl/conformance/rendering/line-rendering-quality.html/_webgl/conformance/state/gl-initial-state.html/_webgl/conformance/textures/image_bitmap_from_blob/tex-2d-rgb-rgb-unsigned_short_5_6_5.html/_webgl/conformance/textures/misc/copy-tex-image-and-sub-image-2d.html/_webgl/conformance2/textures/image/tex-3d-rgba8ui-rgba_integer-unsigned_byte.html/content-security-policy/frame-ancestors/frame-ancestors-path-ignored.window.html (#36468)A 'frame-ancestors' CSP directive with a URL that includes a path should be ignored./cookiestore/httponly_cookies.https.window.htmlHttpOnly cookies are not observed
assert_equals: HttpOnly cookie we wrote using HTTP in cookie jar is invisible to script expected (undefined) undefined but got (string) "cspViolationReportCookie1=1"
HttpOnly cookies can not be set by document.cookie
assert_equals: Trying to store an HttpOnly cookie with document.cookie fails expected "cookie1=value1; cookie3=value3" but got "HTTPONLY-cookie=value; cookie1=value1; cookie3=value3"
HttpOnly cookies can not be set by CookieStore
assert_equals: httpOnly is not an option for CookieStore.set() expected "cookie1=value1; cookie2=value2; cookie3=value3" but got "HTTPONLY-cookie=value; cookie1=value1; cookie2=value2; cookie3=value3"
HttpOnly cookies are not deleted/overwritten
assert_equals: HttpOnly cookie is not deleted expected (string) "HTTPONLY-cookie=value" but got (undefined) undefined
/css/css-backgrounds/background-size-041.html/css/css-fonts/generic-family-keywords-001.html (#37467)@font-face matching for quoted and unquoted generic(khmer-mul)@font-face matching for quoted and unquoted generic(nastaliq)/css/css-sizing/animation/max-width-composition.html/custom-elements/form-associated/ElementInternals-setFormValue.html (#29174)Single value - empty name existsSingle value - Non-empty name exists/fetch/api/basic/header-value-null-byte.any.serviceworker.html/fetch/content-length/api-and-duplicate-headers.any.worker.html (#35197)fetch() and duplicate Content-Length/Content-Type headers
promise_test: Unhandled rejection with value: object "TypeError: Network error occurred"
/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.https.window.htmlPermissions policy header: "deferred-fetch=*" allows fetchLater() in the top-level document.
assert_equals: Number of sent beacons does not match expected count: expected 1 but got 0
/fetch/metadata/window-open.https.sub.html (#40339)/html/anonymous-iframe/indexeddb.tentative.https.window.html (#39254)/html/browsers/browsing-the-web/navigating-across-documents/008.html (#24456)Link with onclick form submit to javascript url and href navigation
assert_equals: expected "href" but got "click"
/html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)Tests that a fragment navigation in the unload handler will not block the initial navigation/html/browsers/history/the-history-interface/traverse_the_history_5.html (#21383)Multiple history traversals, last would be aborted/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/allow-scripts-flag-changing-1.html (#39694)Meta refresh is blocked by the allow-scripts sandbox flag at its creation time, not when refresh comes due/html/semantics/forms/the-fieldset-element/disabled-003.html (#31730, #39631)/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener_base.html (#40347)/html/semantics/scripting-1/the-script-element/execution-timing/077.html (#22139)adding several types of scripts through the DOM and removing some of them confuses scheduler
assert_array_equals: expected property 1 to be "Script #1 ran" but got "Script #3 ran" (expected array ["Script #2 ran", "Script #1 ran", "Script #3 ran", "Script #4 ran"] got ["Script #2 ran", "Script #3 ran", "Script #4 ran", "Script #1 ran"])
/html/webappapis/user-prompts/print-during-unload.html (#35944)print() during unload
assert_array_equals: expected property 1 to be "destination" but got "error: window.print is not a function" (expected array ["start", "destination"] got ["start", "error: window.print is not a function"])
/pointerevents/pointerevent_multiple_pointerover_no_pointer_movement.html/preload/link-header-preload-delay-onload.html (#39622)Makes sure that Link headers preload resources and block window.onload after resource discovery
assert_true: expected true got false
/trusted-types/Element-setAttribute-setAttributeNS-sinks.tentative.html/wasm/webapi/empty-body.any.worker.html/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)buffer-stitching-2
assert_approx_equals: Stitched sine‑wave buffers at sample rate 43800 sample[9304] |-4.227207577682712e-32 - -0.8792417645454407| = 0.8792417645454407 > 0.0038986 expected -0.8792417645454407 +/- 0.0038986 but got -4.227207577682712e-32
/webdriver/tests/classic/delete_cookie/user_prompts.pytest_accept[alert-None]
webdriver.error.InvalidCookieDomainException: invalid cookie domain (400)
/webdriver/tests/classic/dismiss_alert/dismiss.py (#39098)test_dismiss_in_popup_window
AssertionError: no such alert (404): No user prompt is currently active.
/webdriver/tests/classic/execute_async_script/properties.pytest_content_attribute
AssertionError: javascript error (500): can't access property "value", input is null
test_idl_attribute
AssertionError: javascript error (500): can't access property "value", input is null
/webxr/render_state_update.https.html (#27535)/webxr/xrDevice_requestSession_no_mode.https.htmlStable unexpected results that are known to be intermittent (31)
/IndexedDB/idbcursor-continuePrimaryKey-exceptions.any.worker.html (#39277)IDBCursor continuePrimaryKey() on object store cursor
assert_throws_dom: continuePrimaryKey() should throw if source is not an index function "function() {
cursor.continuePrimaryKey(2, 2);
}" threw object "TypeError: cursor.continuePrimaryKey is not a function" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 15
/IndexedDB/idbobjectstore_getAll.any.html (#39276)Get all values with transaction.commit()/IndexedDB/key-conversion-exceptions.any.html (#39305)IDBCursor continue() method with throwing/invalid keys
assert_throws_exactly: key conversion with throwing getter should rethrow function "() => {
receiver[method](key);
}" threw object "TypeError: receiver[method] is not a function" but we expected it to throw object "getter: throwing from getter"
/IndexedDB/key-conversion-exceptions.any.worker.html (#39284)IDBCursor continue() method with throwing/invalid keys
assert_throws_exactly: key conversion with throwing getter should rethrow function "() => {
receiver[method](key);
}" threw object "TypeError: receiver[method] is not a function" but we expected it to throw object "getter: throwing from getter"
IDBCursor update() method with throwing/invalid keys
assert_throws_exactly: throwing getter should rethrow during clone function "() => {
cursor.update(value);
}" threw object "TypeError: cursor.update is not a function" but we expected it to throw object "getter: throwing from getter"
/_mozilla/mozilla/sslfail.html (#10760)/_mozilla/mozilla/window_resize_event.html (#36741)Popup onresize event fires after resizeTo
Test timed out
/_webgl/conformance/textures/misc/texture-upload-size.html (#21770)WebGL test #45WebGL test #47WebGL test #49WebGL test #51WebGL test #53
assert_true: Texture was smaller than the expected size 2x2 expected true got false
WebGL test #55
assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
WebGL test #57
assert_true: Texture was smaller than the expected size 2x2 expected true got false
WebGL test #59
assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
WebGL test #61WebGL test #63/css/css-cascade/layer-font-face-override.html (#35935)@font-face override update with appended sheet 1
assert_equals: expected "80px" but got "41.45px"
/custom-elements/form-associated/form-disabled-callback.html (#38843)A disabled form-associated custom element should not submit an entry for it/dom/xslt/large-cdata.html (#38029)/fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)sec-fetch-dest/fetch/metadata/generated/css-font-face.sub.tentative.html (#34624)sec-fetch-storage-access - Not sent to non-trustworthy same-site destinationsec-fetch-storage-access - Not sent to non-trustworthy cross-site destination/html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)/html/browsers/browsing-the-web/navigating-across-documents/refresh/same-document-refresh.html (#34597)Same-Document Referrer from Refresh
assert_equals: original page loads expected "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section#section"
/html/browsers/history/the-history-interface/001.html (#12580)traversing history must also traverse hash changes
assert_equals: (this could cause other failures later on) expected "" but got "test"
/html/browsers/history/the-history-interface/traverse_the_history_2.html (#21383)Multiple history traversals, last would be aborted/html/browsers/windows/embedded-opener-remove-frame.html (#23867)opener of discarded auxiliary browsing context
assert_object_equals: property "get" expected function "function opener() {
[native code]
}" got function "function opener() {
[native code]
}"
/html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)Element with tabindex should support autofocus
assert_equals: expected "SPAN" but got "BODY"
Non-HTMLElement should not support autofocusHost element with delegatesFocus should support autofocus
Test timed out
/html/semantics/embedded-content/media-elements/preserves-pitch.html (#40352)Test that preservesPitch is present and unprefixed.
assert_true: expected true got false
Test that preservesPitch is on by default
assert_true: expected true got undefined
Setup Audio element and AudioContext
Test timed out
The default playbackRate should not affect pitchThe default playbackRate should not affect pitch, even with preservesPitch=falseSpeed-ups should not change the pitch when preservesPitch=trueSlow-downs should not change the pitch when preservesPitch=trueSpeed-ups should change the pitch when preservesPitch=falseSlow-downs should change the pitch when preservesPitch=false/html/semantics/embedded-content/the-video-element/intrinsic_sizes.htm (#37173)default object size after src is removed
assert_equals: expected "300px" but got "320px"
/html/semantics/forms/form-submission-0/multipart-formdata.window.html (#28725)multipart/form-data: Basic test (normal form)multipart/form-data: Basic test (formdata event)/html/semantics/forms/form-submission-0/text-plain.window.html (#28687)text/plain: Basic test (normal form)text/plain: Basic test (formdata event)/html/semantics/forms/form-submission-0/urlencoded2.window.html (#28687)application/x-www-form-urlencoded: Basic test (normal form)application/x-www-form-urlencoded: Basic File test (formdata event)/html/semantics/forms/historical.html (#28568)<input name=isindex> should not be supported/html/semantics/interactive-elements/the-details-element/name-attribute.html (#40355)/html/user-activation/no-activation-thru-escape-key.html (#40343)/preload/preload-error.sub.html (#37177)404 (fetch): mainCORS (fetch): main/trusted-types/trusted-types-navigation.html?01-05 (#38975)Navigate a window via anchor with javascript:-urls in report-only mode.
promise_test: Unhandled rejection with value: "Unexpected message received: \"No securitypolicyviolation reported!\""
Navigate a frame via anchor with javascript:-urls in enforcing mode./trusted-types/trusted-types-navigation.html?26-30 (#38807)Navigate a frame via form-submission with javascript:-urls in enforcing mode.Navigate a frame via form-submission with javascript:-urls w/ default policy in enforcing mode.
Test timed out
/trusted-types/trusted-types-navigation.html?31-35 (#38034)Navigate a frame via form-submission with javascript:-urls w/ default policy in report-only mode.
Test timed out
Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in enforcing mode.Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in report-only mode.Navigate a window via form-submission with javascript:-urls w/ a default policy making the URL invalid in enforcing mode./workers/baseurl/alpha/import-in-moduleworker.html (#21315)
✨ Try run (#19068620726) succeeded.