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

Issue 1530153002: Change how DOM Inspector fetches document's base URL. (Closed)

Created:
5 years ago by mharanczyk
Modified:
5 years ago
Reviewers:
tkent, sof, dgozman, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, rwlbuis, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change how DOM Inspector fetches document's base URL. With integration of https://codereview.chromium.org/1409293007 appending empty string is invalid operation for non hierarchical base urls. Since DOM Inspector Agent actually want to determine base URL ask for that data directly. Without this change base url for non hierarchical (data:) urls was always empty for inspector, which in turn caused webdriver to freeze when trying to communicate with such documents, because it wrongly assumed it is still in loading state (base url was empty), so it waited for load complete. Committed: https://crrev.com/30bd0e0d48f3775e3214ad3e524356259f58f580 Cr-Commit-Position: refs/heads/master@{#366079}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added documentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 2 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
mharanczyk
PTAL, this change addresses webdriver freeze on data: documents.
5 years ago (2015-12-16 15:28:34 UTC) #3
dgozman
+tkent for core/dom https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode1478 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:1478: return document->baseURLForOverride(document->baseURL()).string(); This change looks fine, ...
5 years ago (2015-12-16 18:00:49 UTC) #5
mharanczyk
https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode1478 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:1478: return document->baseURLForOverride(document->baseURL()).string(); On 2015/12/16 18:00:49, dgozman wrote: > This ...
5 years ago (2015-12-16 18:29:42 UTC) #6
sof
https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode1478 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:1478: return document->baseURLForOverride(document->baseURL()).string(); On 2015/12/16 18:29:42, mharanczyk wrote: > On ...
5 years ago (2015-12-16 18:53:27 UTC) #8
mharanczyk
On 2015/12/16 18:53:27, sof wrote: > https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp > File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): > > https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode1478 > ...
5 years ago (2015-12-16 19:02:40 UTC) #9
sof
On 2015/12/16 19:02:40, mharanczyk wrote: > On 2015/12/16 18:53:27, sof wrote: > > > https://codereview.chromium.org/1530153002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp ...
5 years ago (2015-12-16 19:36:01 UTC) #10
tkent
lgtm > KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) const; > const KURL& baseURLForOverride(const KURL& baseURLOverride) ...
5 years ago (2015-12-17 03:36:51 UTC) #11
mharanczyk
tkent@, added documentation, I'm not sure if this is what you wanted so please take ...
5 years ago (2015-12-17 12:34:24 UTC) #12
dgozman
On 2015/12/17 12:34:24, mharanczyk wrote: > tkent@, added documentation, I'm not sure if this is ...
5 years ago (2015-12-17 18:43:51 UTC) #13
tkent
The comments looks good. Thanks.
5 years ago (2015-12-17 22:18:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530153002/20001
5 years ago (2015-12-18 10:29:10 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-18 11:49:03 UTC) #19
commit-bot: I haz the power
5 years ago (2015-12-18 11:50:05 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/30bd0e0d48f3775e3214ad3e524356259f58f580
Cr-Commit-Position: refs/heads/master@{#366079}

Powered by Google App Engine
This is Rietveld 408576698