Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 2575273002: Fix empty href for favicon link element causing page to be fetched twice. (Closed)

Created:
4 years ago by lpy
Modified:
4 years ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, gavinp+prerender_chromium.org, rwlbuis, sof, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix empty href for favicon link element causing page to be fetched twice. Accroding to HTML spec https://html.spec.whatwg.org/multipage/semantics.html#the-link-element, if the href attribute in link element is empty, then the element does not define a link and should be ignored. BUG=669351 Committed: https://crrev.com/24d87e2f1a18e9cc58a37126b85c921ea37ba695 Cr-Commit-Position: refs/heads/master@{#438762}

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 8

Patch Set 3 : Update test #

Total comments: 2

Patch Set 4 : Update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -1 line) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 chunk +4 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (24 generated)
lpy
PTAL. I assume I should put the test in html/, but I am not 100% ...
4 years ago (2016-12-15 00:54:14 UTC) #7
tkent
> I assume I should put the test in html/, but I am not 100% ...
4 years ago (2016-12-15 01:02:23 UTC) #8
lpy
On 2016/12/15 01:02:23, tkent wrote: > > I assume I should put the test in ...
4 years ago (2016-12-15 01:14:44 UTC) #10
tkent
https://codereview.chromium.org/2575273002/diff/40001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp File third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp (right): https://codereview.chromium.org/2575273002/diff/40001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp#newcode11 third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp:11: Remove the blank line https://codereview.chromium.org/2575273002/diff/40001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp#newcode21 third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp:21: void TearDown() override ...
4 years ago (2016-12-15 01:20:04 UTC) #12
lpy
Thanks, I updated the patch, ptal. https://codereview.chromium.org/2575273002/diff/40001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp File third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp (right): https://codereview.chromium.org/2575273002/diff/40001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp#newcode11 third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp:11: On 2016/12/15 01:20:03, ...
4 years ago (2016-12-15 01:25:39 UTC) #17
tkent
https://codereview.chromium.org/2575273002/diff/60001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp File third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp (right): https://codereview.chromium.org/2575273002/diff/60001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp#newcode19 third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp:19: void TearDown() override {} Remove this line. You don't ...
4 years ago (2016-12-15 01:29:11 UTC) #18
lpy
https://codereview.chromium.org/2575273002/diff/60001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp File third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp (right): https://codereview.chromium.org/2575273002/diff/60001/third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp#newcode19 third_party/WebKit/Source/core/html/HTMLLinkElementTest.cpp:19: void TearDown() override {} On 2016/12/15 01:29:11, tkent wrote: ...
4 years ago (2016-12-15 01:30:36 UTC) #20
tkent
lgtm
4 years ago (2016-12-15 05:28:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2575273002/80001
4 years ago (2016-12-15 05:50:10 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-15 05:55:19 UTC) #33
commit-bot: I haz the power
4 years ago (2016-12-15 05:59:13 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/24d87e2f1a18e9cc58a37126b85c921ea37ba695
Cr-Commit-Position: refs/heads/master@{#438762}

Powered by Google App Engine
This is Rietveld 408576698