New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 801694 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Couldn't manually trigger print via MediaQueryListEvent

Reported by alexande...@gmail.com, Jan 12 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. Open this codepen
https://codepen.io/oxygen90/pen/eyKWVZ
better in the debug mode
https://s.codepen.io/oxygen90/debug/eyKWVZ/XBkGRoYoJWVA
2. Open Chrome DevTools console.
3. Press "Ctrl + P" to trigger print mode. You can see the new line "updateDimensions event <eventObj>" in console.
4. Close print preview by pushing "Cancel" button.
5. Push "Trigger event" button on the page.

What is the expected behavior?
`updateDimensions()` callback should be performed after triggering custom event by clicking the "Trigger event" button. New line "updateDimensions event <eventObj>" should appear in console.

What went wrong?
`updateDimensions()` callback isn't performed after clicking the "Trigger event" button.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 28.0 r0

I've compared event object that `updateDimensions()` callback received from the browser when a user triggers print preview with my custom event object. They are almost identical. The only change that I noticed is `isTrusted` property.
Not sure, maybe I trigger custom `MediaQueryListEvent` wrongly.
 
Cc: krajshree@chromium.org
Components: Platform>DevTools
Labels: Needs-Triage-M63 Triaged-ET Needs-Feedback
Unable to reproduce the issue on Win-10 using chrome reported version #63.0.3239.132 and latest canary #65.0.3321.0.
Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened this codepen
https://codepen.io/oxygen90/pen/eyKWVZ
2. Opened Chrome DevTools console.
3. Pressed "Ctrl + P" to trigger print mode. Observed a new line "updateDimensions event <eventObj>" in console.
4. Closed print preview by pushing "Cancel" button.
5. Push "Trigger event" button on the page. Observed a new line "updateDimensions event <eventObj>" appeared in console.

alexanderlukin9@ - Could you please check the screen cast and please let us know if anything missed from our side. Also please check the issue on latest canary #65.0.3321.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
801694.mp4
3.0 MB View Download

Comment 2 by l...@chromium.org, Jan 31 2018

Components: -Platform>DevTools Blink>CSS
Labels: -Needs-Feedback
Replacing DevTools with CSS, since the console seems to be involved just for examining output.
Labels: Needs-Bisect
Status: Untriaged (was: Unconfirmed)
Labels: -Needs-Bisect M-66 FoundIn-66 Target-66 OS-Linux OS-Mac
Able to reproduce this issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome reported version #63.0.3239.132, latest stable #64.0.3282.140 and latest canary #66.0.3336.0.
This is a non-regression issue as it is observed from M60 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!

Comment 5 by nainar@google.com, Feb 5 2018

Components: -Blink>CSS Internals>Printing
Hoping the print team can provide some direction here. 

Comment 6 by nainar@google.com, Feb 5 2018

Summary: Couldn't manually trigger print via MediaQueryListEvent (was: Couldn't manually trigger MediaQueryListEvent)

Sign in to add a comment