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

Issue 2754933004: Set default document urls to 'about:blank'. (Closed)

Created:
3 years, 9 months ago by MartinRogalla
Modified:
3 years, 9 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Set default document urls to 'about:blank'. The patch ensures that the document urls are set to 'about:blank', as is specified in [1], if a url has not been specified. It fixes the tests in [2] and [3]. The functionality is implemented by binding the document urls to 'about:blank' if m_url is empty. To achieve this behavior the Document::urlForBinding() function was added. The choice for a binding was made rather than not using an intial value of 'about:blank' for the document urls, as other parts of the code rely on the document urls initially being empty. More details regarding the binding can be found under: https://codereview.chromium.org/2749803003/#msg37 [1] https://dom.spec.whatwg.org/#interface-document [2] http://w3c-test.org/dom/nodes/DOMImplementation-createDocument.html [3] http://w3c-test.org/dom/nodes/DOMImplementation-createHTMLDocument.html BUG=563986 Review-Url: https://codereview.chromium.org/2754933004 Cr-Commit-Position: refs/heads/master@{#459019} Committed: https://chromium.googlesource.com/chromium/src/+/45009c8984881526e99cdb26a752a3acd29a0b60

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added comments, put impl in .cpp. #

Total comments: 1

Patch Set 3 : Fixed url() comment to tkent's suggestion. #

Patch Set 4 : Fixed test expectations. #

Patch Set 5 : Set default document urls to 'about:blank'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -6325 lines) Patch
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentgetdocumenturi02.js View 1 chunk +0 lines, -112 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentgetdocumenturi02.xhtml View 1 chunk +0 lines, -73 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentgetdocumenturi03.js View 1 chunk +0 lines, -118 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentgetdocumenturi03.xhtml View 1 chunk +0 lines, -73 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentgetdocumenturi03-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentsetdocumenturi03.js View 1 chunk +0 lines, -117 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentsetdocumenturi03.xhtml View 1 chunk +0 lines, -25 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentsetdocumenturi03-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/nodegetbaseuri02.js View 1 chunk +0 lines, -119 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/nodegetbaseuri02.xhtml View 1 chunk +0 lines, -25 lines 0 comments Download
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/nodegetbaseuri02-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/nodes/DOMImplementation-createDocument-expected.txt View 6 chunks +91 lines, -91 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt View 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-cloneNode-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-properties-expected.txt View 1 chunk +0 lines, -703 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/document-attribute-js-null.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/document-attribute-js-null-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.11/external/wpt/dom/interfaces-expected.txt View 1 2 3 4 1 chunk +0 lines, -1613 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-retina/external/wpt/dom/interfaces-expected.txt View 1 2 3 4 1 chunk +0 lines, -1613 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/external/wpt/dom/interfaces-expected.txt View 1 2 3 4 1 chunk +0 lines, -1613 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.idl View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
MartinRogalla
3 years, 9 months ago (2017-03-18 03:27:55 UTC) #2
tkent
https://codereview.chromium.org/2754933004/diff/1/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2754933004/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode1304 third_party/WebKit/Source/core/dom/Document.h:1304: KURL urlForBinding() { Let's declare urlForBinding() around url(), and ...
3 years, 9 months ago (2017-03-20 23:06:54 UTC) #3
MartinRogalla
On 2017/03/20 23:06:54, tkent wrote: > https://codereview.chromium.org/2754933004/diff/1/third_party/WebKit/Source/core/dom/Document.h > File third_party/WebKit/Source/core/dom/Document.h (right): > > https://codereview.chromium.org/2754933004/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode1304 > ...
3 years, 9 months ago (2017-03-22 04:26:02 UTC) #4
tkent
https://codereview.chromium.org/2754933004/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2754933004/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode598 third_party/WebKit/Source/core/dom/Document.h:598: // Get the URL that was used to retrieve ...
3 years, 9 months ago (2017-03-22 08:36:27 UTC) #5
MartinRogalla
On 2017/03/22 08:36:27, tkent wrote: > https://codereview.chromium.org/2754933004/diff/20001/third_party/WebKit/Source/core/dom/Document.h > File third_party/WebKit/Source/core/dom/Document.h (right): > > https://codereview.chromium.org/2754933004/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode598 > ...
3 years, 9 months ago (2017-03-22 17:17:35 UTC) #6
tkent
lgtm
3 years, 9 months ago (2017-03-22 22:21:29 UTC) #8
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/2754933004/40001
3 years, 9 months ago (2017-03-22 22:22:02 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/406119)
3 years, 9 months ago (2017-03-23 00:07:21 UTC) #11
MartinRogalla
On 2017/03/23 00:07:21, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-23 01:21:05 UTC) #12
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/2754933004/60001
3 years, 9 months ago (2017-03-23 05:50:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304426)
3 years, 9 months ago (2017-03-23 06:05:42 UTC) #21
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/2754933004/60001
3 years, 9 months ago (2017-03-23 07:40:17 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/45009c8984881526e99cdb26a752a3acd29a0b60
3 years, 9 months ago (2017-03-23 08:00:19 UTC) #26
Mike Wittman
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2775693002/ by wittman@chromium.org. ...
3 years, 9 months ago (2017-03-23 18:28:27 UTC) #27
MartinRogalla
On 2017/03/23 18:28:27, Mike Wittman wrote: > A revert of this CL (patchset #4 id:60001) ...
3 years, 9 months ago (2017-03-23 18:53:02 UTC) #28
tkent
On 2017/03/23 at 18:53:02, martin wrote: > tkent, do you have an idea what's going ...
3 years, 9 months ago (2017-03-23 22:32:23 UTC) #29
MartinRogalla
3 years, 9 months ago (2017-03-24 22:30:03 UTC) #30
Message was sent while issue was closed.
On 2017/03/23 22:32:23, tkent wrote:
> On 2017/03/23 at 18:53:02, martin wrote:
> > tkent, do you have an idea what's going on? I'm quite confused as to why it
> passes with trybot.
> 
> Unfortunately, the default set of trybots doesn't have mac10.12 coverage, and
we
> have three interfaces-expected.txt
> * LayoutTests/external/wpt/dom/interfaces-expected.txt
> * LayoutTests/platform/mac-mac10.11/external/wpt/dom/interfaces-expected.txt
> * LayoutTests/platform/win/external/wpt/dom/interfaces-expected.txt
> 
> With the current fallback rule, only mac10.12 uses the first one.
> These files are redundant.  We should remove
> LayoutTests/platform/*/external/dom/interfaces-expected.txt, and this CL
should
> update LayoutTests/external/dom/inerfaces-expected.txt.

Okay, I removed the platform specific tests and kept the main
third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt in the
following issue: https://codereview.chromium.org/2768373005

Powered by Google App Engine
This is Rietveld 408576698