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

Issue 245443003: Update platform_app.js to work even if window.history is not replaceable (Closed)

Created:
6 years, 8 months ago by Inactive
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Update platform_app.js to work even if window.history is not replaceable platform_app.js was using "history = {};" to disable the History API. However, Blink is about to be updated so that window.history is no longer replaceable (as per the specification, and to align with other browsers). This CL updates platform_app.js so that history is still disabled, even if window.history is not replaceable. BUG=365355 TEST=PlatformAppBrowserTest.Restrictions Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265429

Patch Set 1 #

Total comments: 4

Patch Set 2 : Take arv's feedback into consideration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/renderer/resources/extensions/platform_app.js View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/restrictions/main.js View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Inactive
https://codereview.chromium.org/245443003/diff/1/chrome/test/data/extensions/platform_apps/restrictions/main.js File chrome/test/data/extensions/platform_apps/restrictions/main.js (right): https://codereview.chromium.org/245443003/diff/1/chrome/test/data/extensions/platform_apps/restrictions/main.js#newcode68 chrome/test/data/extensions/platform_apps/restrictions/main.js:68: assertEq('undefined', typeof(history[property])); This is a bit safer now, in ...
6 years, 8 months ago (2014-04-21 19:46:10 UTC) #1
Inactive
The Blink side change is at https://codereview.chromium.org/242613009/ It was reverted once for breaking the PlatformAppBrowserTest.Restrictions ...
6 years, 8 months ago (2014-04-22 13:15:35 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/245443003/diff/1/chrome/renderer/resources/extensions/platform_app.js File chrome/renderer/resources/extensions/platform_app.js (left): https://codereview.chromium.org/245443003/diff/1/chrome/renderer/resources/extensions/platform_app.js#oldcode155 chrome/renderer/resources/extensions/platform_app.js:155: window.history = {}; This one could have been replaced ...
6 years, 8 months ago (2014-04-22 13:54:42 UTC) #3
Inactive
https://codereview.chromium.org/245443003/diff/1/chrome/renderer/resources/extensions/platform_app.js File chrome/renderer/resources/extensions/platform_app.js (left): https://codereview.chromium.org/245443003/diff/1/chrome/renderer/resources/extensions/platform_app.js#oldcode155 chrome/renderer/resources/extensions/platform_app.js:155: window.history = {}; On 2014/04/22 13:54:42, arv wrote: > ...
6 years, 8 months ago (2014-04-22 14:43:53 UTC) #4
Inactive
https://codereview.chromium.org/245443003/diff/1/chrome/renderer/resources/extensions/platform_app.js File chrome/renderer/resources/extensions/platform_app.js (left): https://codereview.chromium.org/245443003/diff/1/chrome/renderer/resources/extensions/platform_app.js#oldcode155 chrome/renderer/resources/extensions/platform_app.js:155: window.history = {}; On 2014/04/22 13:54:42, arv wrote: > ...
6 years, 8 months ago (2014-04-22 14:59:58 UTC) #5
arv (Not doing code reviews)
LGTM but please wait for one of the platform app people to review too.
6 years, 8 months ago (2014-04-22 15:03:32 UTC) #6
miket_OOO
lgtm
6 years, 8 months ago (2014-04-22 19:37:21 UTC) #7
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 8 months ago (2014-04-22 19:38:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/245443003/20001
6 years, 8 months ago (2014-04-22 19:39:20 UTC) #9
commit-bot: I haz the power
Change committed as 265429
6 years, 8 months ago (2014-04-23 00:02:23 UTC) #10
arv (Not doing code reviews)
6 years, 8 months ago (2014-04-23 13:46:38 UTC) #11
Message was sent while issue was closed.
I  just wanted to make you aware that these accessors should go on
History.prototype and once we fix bug
https://code.google.com/p/chromium/issues/detail?id=43394 we need to update this
to delete the accessors from the prototype too.

Powered by Google App Engine
This is Rietveld 408576698