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

Issue 2749803003: Initialize document m_URL, m_baseURL to blankURL. (Closed)

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

Description

Initialize document m_URL & m_baseURL to blankURL. This patch will ensure that m_URL and m_baseURL are initialized to blankURL (about:blank) as is specified in [1]. This patch fixes the tests in [2] and [3]. [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/2749803003 Cr-Commit-Position: refs/heads/master@{#457347} Committed: https://chromium.googlesource.com/chromium/src/+/9168f165fe92e37664a5e39fef987f0e3ad72a62

Patch Set 1 #

Patch Set 2 : Corrected test expectations. #

Patch Set 3 : Removed deprecated tests, changed expectations. #

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -1512 lines) Patch
D third_party/WebKit/LayoutTests/dom/legacy_dom_conformance/xhtml/level3/core/documentgetdocumenturi02.js View 1 2 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 2 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 2 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 2 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 2 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 2 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 2 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 2 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 2 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 2 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 2 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt View 1 2 3 7 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/nodes/DOMImplementation-createDocument-expected.txt View 1 6 chunks +91 lines, -91 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt View 1 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-cloneNode-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-properties-expected.txt View 1 1 chunk +0 lines, -703 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/document-attribute-js-null.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/document-attribute-js-null-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/location-new-window-no-crash.html View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/location-new-window-no-crash-expected.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.11/external/wpt/dom/interfaces-expected.txt View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-retina/external/wpt/dom/interfaces-expected.txt View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/external/wpt/dom/interfaces-expected.txt View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
MartinRogalla
3 years, 9 months ago (2017-03-14 22:37:23 UTC) #1
MartinRogalla
3 years, 9 months ago (2017-03-14 22:37:49 UTC) #4
tkent
https://storage.googleapis.com/chromium-layout-test-archives/mac_chromium_rel_ng/406889/layout-test-results/results.html As for dom/lagecy_dom_conformance/, if Firefox fails with them, let's remove the tests. As for ...
3 years, 9 months ago (2017-03-15 00:43:45 UTC) #13
MartinRogalla
On 2017/03/15 00:43:45, tkent wrote: > https://storage.googleapis.com/chromium-layout-test-archives/mac_chromium_rel_ng/406889/layout-test-results/results.html > > As for dom/lagecy_dom_conformance/, if Firefox fails ...
3 years, 9 months ago (2017-03-15 01:08:21 UTC) #14
MartinRogalla
On 2017/03/15 01:08:21, MartinRogalla wrote: > On 2017/03/15 00:43:45, tkent wrote: > > > https://storage.googleapis.com/chromium-layout-test-archives/mac_chromium_rel_ng/406889/layout-test-results/results.html ...
3 years, 9 months ago (2017-03-15 01:26:30 UTC) #15
tkent
> If the expectations of "fast/dom/location-new-window-no-crash.html" (https://codereview.chromium.org/2749803003/patch/40001/50019) are in accordance with the standards, the latest ...
3 years, 9 months ago (2017-03-15 01:54:21 UTC) #16
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/2749803003/40001
3 years, 9 months ago (2017-03-15 01:55:08 UTC) #18
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt: While running git apply --index -p1; <stdin>:37: trailing whitespace. ...
3 years, 9 months ago (2017-03-15 03:04:07 UTC) #20
MartinRogalla
On 2017/03/15 03:04:07, commit-bot: I haz the power wrote: > Failed to apply patch for ...
3 years, 9 months ago (2017-03-15 15:50:58 UTC) #21
tkent
On 2017/03/15 at 15:50:58, martin wrote: > Ehm, I didn't see something like this before. ...
3 years, 9 months ago (2017-03-15 21:00:39 UTC) #22
MartinRogalla
On 2017/03/15 21:00:39, tkent wrote: > On 2017/03/15 at 15:50:58, martin wrote: > > Ehm, ...
3 years, 9 months ago (2017-03-16 02:45:32 UTC) #25
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/2749803003/60001
3 years, 9 months ago (2017-03-16 04:02:29 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/9168f165fe92e37664a5e39fef987f0e3ad72a62
3 years, 9 months ago (2017-03-16 04:08:28 UTC) #33
tzik
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2757573002/ by tzik@chromium.org. ...
3 years, 9 months ago (2017-03-16 06:31:51 UTC) #34
Ken Rockot(use gerrit already)
On 2017/03/16 at 06:31:51, tzik wrote: > A revert of this CL (patchset #4 id:60001) ...
3 years, 9 months ago (2017-03-16 06:36:37 UTC) #35
brucedawson
The CL also seemed to break browser_tests on ChromeOS: https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.chromiumos%2FLinux_ChromiumOS_Tests__1_%2F35324%2F%2B%2Frecipes%2Fsteps%2Fbrowser_tests%2F0%2Fstdout Lots of "Set OOM score ...
3 years, 9 months ago (2017-03-16 18:28:06 UTC) #36
tkent
Though I'm not sure why trybots didn't catch the problems, I reproduced some test failures ...
3 years, 9 months ago (2017-03-17 08:25:03 UTC) #37
MartinRogalla
3 years, 9 months ago (2017-03-17 22:05:55 UTC) #38
Message was sent while issue was closed.
On 2017/03/17 08:25:03, tkent wrote:
> Though I'm not sure why trybots didn't catch the problems, I reproduced some
> test failures locally on Mac.
> 
> % ninja ... -C out/debug content_browsertets
> % ./out/debug/content_browsertests
> --gtest_filter=NavigationControllerBrowserTest.ErrorPageReplacement
> 
> It seems we have many code assuming Document initially has empty URL instead
of
> about:blank.
> 
> One possible workaround is:
>  - Don't change initial value of m_url.
>  - Add new function Document::urlForBinding().  It returns "about:blank" if
> m_url is empty.
>  - Add ImplementedAs=urlForBinding to URL and documentURI in Document.idl.

Sounds good, I'll implement it and try to run the previously failing tests
locally.

Powered by Google App Engine
This is Rietveld 408576698