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

Issue 643972 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Source shouldn't have a media query listener after media attr is removed

Project Member Reported by y...@yoav.ws, Sep 4 2016

Issue description

Version: 54
OS: All

As caught during code review by cbiesinger@[1], we need to remove listeners in case media is empty.

[1] https://codereview.chromium.org/2256533002/#msg22
 

Comment 1 by y...@yoav.ws, Sep 4 2016

Summary: Source shouldn't have a media query listener after media attr is removed (was: Source may trigger spurious image downloads on viewport changes after media attr is removed)

Comment 2 by y...@yoav.ws, Sep 5 2016

Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/626cb8e7078d2d0bc98be866c664e201c3434ad2

commit 626cb8e7078d2d0bc98be866c664e201c3434ad2
Author: yoav <yoav@yoav.ws>
Date: Thu Sep 08 02:58:00 2016

Remove HTMLSourceElement media listener if media attribute is empty

This CL removes the MediaQueryListener from HTMLSourceElement that their
media attribute was removed.

BUG= 643972 

Review-Url: https://codereview.chromium.org/2307353002
Cr-Commit-Position: refs/heads/master@{#417176}

[modify] https://crrev.com/626cb8e7078d2d0bc98be866c664e201c3434ad2/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp

Comment 4 by y...@yoav.ws, Sep 8 2016

Status: Fixed (was: Started)
Project Member

Comment 5 by bugdroid1@chromium.org, Sep 8 2016

Labels: merge-merged-2854
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/626cb8e7078d2d0bc98be866c664e201c3434ad2

commit 626cb8e7078d2d0bc98be866c664e201c3434ad2
Author: yoav <yoav@yoav.ws>
Date: Thu Sep 08 02:58:00 2016

Remove HTMLSourceElement media listener if media attribute is empty

This CL removes the MediaQueryListener from HTMLSourceElement that their
media attribute was removed.

BUG= 643972 

Review-Url: https://codereview.chromium.org/2307353002
Cr-Commit-Position: refs/heads/master@{#417176}

[modify] https://crrev.com/626cb8e7078d2d0bc98be866c664e201c3434ad2/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp

Sign in to add a comment