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

Issue 1837483002: Allow LoadNavigationErrorPage to run scripts (Closed)

Created:
4 years, 9 months ago by robwu
Modified:
4 years, 9 months ago
Reviewers:
esprehn, Rick Byers
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, jam, Nate Chapin, jochen+watch_chromium.org, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow LoadNavigationErrorPage to run scripts Move the LoadNavigationErrorPage call from DidFinishDocumentLoad to RunScriptsAtDocumentReady, because the former is in a ScriptForbiddenScope and caused an assertion to be triggered in blink::beforeCallEnteredCallback when the beforeunload listeners were ran as a part of the navigation. BUG=590634 Committed: https://crrev.com/2718dfcda8f7afd32b5229d91c3314bf61faf16c Cr-Commit-Position: refs/heads/master@{#383355}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -42 lines) Patch
M components/test_runner/web_frame_test_proxy.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 3 chunks +23 lines, -17 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
robwu
It turns out that the ScriptForbiddenScope added in https://codereview.chromium.org/1642283002/ was too strict, so I've moved ...
4 years, 9 months ago (2016-03-25 13:55:20 UTC) #2
esprehn
lgtm
4 years, 9 months ago (2016-03-25 20:14:05 UTC) #3
robwu
Rick, could you rs lg components/test_runner/web_frame_test_proxy.h ?
4 years, 9 months ago (2016-03-25 20:41:06 UTC) #5
Rick Byers
Yep, components/test_runner RS LGTM
4 years, 9 months ago (2016-03-25 20:46:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837483002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837483002/1
4 years, 9 months ago (2016-03-25 20:52:51 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-25 20:58:44 UTC) #9
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 21:00:24 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2718dfcda8f7afd32b5229d91c3314bf61faf16c
Cr-Commit-Position: refs/heads/master@{#383355}

Powered by Google App Engine
This is Rietveld 408576698