Add back buttons and load new 'pages' by calling javascript.
Previously when we want to see the details inside a specific suite, we
will go to a url '.../?suite=xxx'. This may not work in google storage.
In this cl, I am changing the logic by calling javascript directly to
change the content of the page, if the user wants to see a specific
suite.
Because we are not changing urls anymore, we need to have a "Back"
button to go back to the main page.
BUG=605572
Review-Url: https://codereview.chromium.org/2799153008
Cr-Commit-Position: refs/heads/master@{#463781}
Committed: https://chromium.googlesource.com/chromium/src/+/9b4e899d21ec602a49cd050b800085cd22130c69
Description was changed from ========== Add back buttons and load new 'pages' by calling javascript. ...
3 years, 8 months ago
(2017-04-07 22:08:26 UTC)
#1
Description was changed from
==========
Add back buttons and load new 'pages' by calling javascript.
Previously when we want to see the details inside a specific suite, we
will go to a url '.../?suite=xxx'. This may not work in google storage.
In this cl, I am changing the logic by calling javascript directly to
change the content of the page, if the user wants to see a specific
suite.
Because we are not changing urls anymore, we need to have a "Back"
button to go back to the main page.
BUG=605572
==========
to
==========
Add back buttons and load new 'pages' by calling javascript.
Previously when we want to see the details inside a specific suite, we
will go to a url '.../?suite=xxx'. This may not work in google storage.
In this cl, I am changing the logic by calling javascript directly to
change the content of the page, if the user wants to see a specific
suite.
Because we are not changing urls anymore, we need to have a "Back"
button to go back to the main page.
BUG=605572
==========
3 years, 8 months ago
(2017-04-10 19:43:56 UTC)
#7
BigBossZhiling
3 years, 8 months ago
(2017-04-11 17:41:24 UTC)
#8
jbudorick
https://codereview.chromium.org/2799153008/diff/160001/build/android/pylib/results/presentation/javascript/main_html.js File build/android/pylib/results/presentation/javascript/main_html.js (right): https://codereview.chromium.org/2799153008/diff/160001/build/android/pylib/results/presentation/javascript/main_html.js#newcode49 build/android/pylib/results/presentation/javascript/main_html.js:49: window.scrollTo(0, 0); Why are we now scrolling to the ...
3 years, 8 months ago
(2017-04-11 17:52:47 UTC)
#9
The reason now we are scrolling to the top is that, the browser thinks we ...
3 years, 8 months ago
(2017-04-11 17:58:25 UTC)
#10
The reason now we are scrolling to the top is that, the browser thinks we
are still on the same page because we didn't change the url and reload, as
we previously did when we add ?xxx=yyy and reload. As a result, the browser
will stick to the "same" place. Therefore if we were on the bottom of the
suite table page, when we click to see the test table, we will still be on
the bottom part of the page.
On Tue, Apr 11, 2017 at 10:52 AM, <jbudorick@chromium.org> wrote:
>
> https://codereview.chromium.org/2799153008/diff/160001/
> build/android/pylib/results/presentation/javascript/main_html.js
> File build/android/pylib/results/presentation/javascript/main_html.js
> (right):
>
> https://codereview.chromium.org/2799153008/diff/160001/
> build/android/pylib/results/presentation/javascript/main_html.js#newcode49
> build/android/pylib/results/presentation/javascript/main_html.js:49:
> window.scrollTo(0, 0);
> Why are we now scrolling to the top?
>
> https://codereview.chromium.org/2799153008/diff/160001/
> build/android/pylib/results/presentation/javascript/main_html.js#newcode50
> build/android/pylib/results/presentation/javascript/main_html.js:50: if
> (push_state) {
> Should this & replace_state be in these two functions? What if we
> extracted them, either to the call sites directly or to separate (or
> wrapping) functions?
>
> https://codereview.chromium.org/2799153008/
>
--
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.
CQ is committing da patch. Bot data: {"patchset_id": 220001, "attempt_start_ts": 1491941813475580, "parent_rev": "41fb39bbab83396812415b5b303c3ca7b47c2bd4", "commit_rev": "9b4e899d21ec602a49cd050b800085cd22130c69"}
3 years, 8 months ago
(2017-04-11 21:42:23 UTC)
#21
CQ is committing da patch.
Bot data: {"patchset_id": 220001, "attempt_start_ts": 1491941813475580,
"parent_rev": "41fb39bbab83396812415b5b303c3ca7b47c2bd4", "commit_rev":
"9b4e899d21ec602a49cd050b800085cd22130c69"}
commit-bot: I haz the power
Description was changed from ========== Add back buttons and load new 'pages' by calling javascript. ...
3 years, 8 months ago
(2017-04-11 21:43:34 UTC)
#22
Message was sent while issue was closed.
Description was changed from
==========
Add back buttons and load new 'pages' by calling javascript.
Previously when we want to see the details inside a specific suite, we
will go to a url '.../?suite=xxx'. This may not work in google storage.
In this cl, I am changing the logic by calling javascript directly to
change the content of the page, if the user wants to see a specific
suite.
Because we are not changing urls anymore, we need to have a "Back"
button to go back to the main page.
BUG=605572
==========
to
==========
Add back buttons and load new 'pages' by calling javascript.
Previously when we want to see the details inside a specific suite, we
will go to a url '.../?suite=xxx'. This may not work in google storage.
In this cl, I am changing the logic by calling javascript directly to
change the content of the page, if the user wants to see a specific
suite.
Because we are not changing urls anymore, we need to have a "Back"
button to go back to the main page.
BUG=605572
Review-Url: https://codereview.chromium.org/2799153008
Cr-Commit-Position: refs/heads/master@{#463781}
Committed:
https://chromium.googlesource.com/chromium/src/+/9b4e899d21ec602a49cd050b8000...
==========
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/chromium/src/+/9b4e899d21ec602a49cd050b800085cd22130c69
3 years, 8 months ago
(2017-04-11 21:43:35 UTC)
#23
Issue 2799153008: Add back buttons and load new 'pages' by calling javascript.
(Closed)
Created 3 years, 8 months ago by BigBossZhiling
Modified 3 years, 8 months ago
Reviewers: mikecase (-- gone --), jbudorick
Base URL:
Comments: 13