|
|
Created:
4 years, 3 months ago by Yoav Weiss Modified:
4 years, 3 months ago Reviewers:
cbiesinger CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionRemove HTMLSourceElement media listener if media attribute is empty
This CL removes the MediaQueryListener from HTMLSourceElement that their
media attribute was removed.
BUG=643972
Committed: https://crrev.com/626cb8e7078d2d0bc98be866c664e201c3434ad2
Cr-Commit-Position: refs/heads/master@{#417176}
Patch Set 1 #
Total comments: 1
Patch Set 2 : nullify mqlist #Messages
Total messages: 18 (12 generated)
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
yoav@yoav.ws changed reviewers: + cbiesinger@chromium.org
Hey Christian, Here's the change we discussed at the previous CL. I initially thought it's observable, but eventually since removing a media attribute means that the resource is picked anyway, the presence of the MQListener is not really triggering any downloads that shouldn't happen anyway. Can you take a look?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2307353002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/html/HTMLSourceElement.cpp (right): https://codereview.chromium.org/2307353002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/html/HTMLSourceElement.cpp:89: m_mediaQueryList = MediaQueryList::create(&document(), &document().mediaQueryMatcher(), set); Should this also be set to null if media.isEmpty()?
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/07 16:01:42, cbiesinger wrote: > lgtm > > https://codereview.chromium.org/2307353002/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/html/HTMLSourceElement.cpp (right): > > https://codereview.chromium.org/2307353002/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/html/HTMLSourceElement.cpp:89: m_mediaQueryList = > MediaQueryList::create(&document(), &document().mediaQueryMatcher(), set); > Should this also be set to null if media.isEmpty()? Sure, that way GC might collect it sooner. Changed
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by yoav@yoav.ws
The patchset sent to the CQ was uploaded after l-g-t-m from cbiesinger@chromium.org Link to the patchset: https://codereview.chromium.org/2307353002/#ps20001 (title: "nullify mqlist")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Remove HTMLSourceElement media listener if media attribute is empty This CL removes the MediaQueryListener from HTMLSourceElement that their media attribute was removed. BUG=643972 ========== to ========== Remove HTMLSourceElement media listener if media attribute is empty This CL removes the MediaQueryListener from HTMLSourceElement that their media attribute was removed. BUG=643972 Committed: https://crrev.com/626cb8e7078d2d0bc98be866c664e201c3434ad2 Cr-Commit-Position: refs/heads/master@{#417176} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/626cb8e7078d2d0bc98be866c664e201c3434ad2 Cr-Commit-Position: refs/heads/master@{#417176} |