Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to stop page loading #3553

Merged
merged 10 commits into from
Nov 13, 2024
Merged

Add possibility to stop page loading #3553

merged 10 commits into from
Nov 13, 2024

Conversation

dus7
Copy link
Contributor

@dus7 dus7 commented Nov 7, 2024

Task/Issue URL: https://app.asana.com/0/1206226850447395/1206267785501484/f
Tech Design URL:
CC:

Description:

Adds an additional OmniBar state variation when the website is loading, allowing to stop the loading process.

Steps to test this PR:
💡 It's helpful to test on a physical device (with link conditioner enabled to slow down loading) or using link conditioner for simulator.

  1. Start loading a website on 2 or more tabs.
  2. Switch between them and observe if state is shown properly. (swiping on address bar is helpful to do it quickly).
  3. Stop loading.
  4. Verify omni bar state is valid (refresh is visible) and:
    a. if no valid resources were loaded error page should be presented
    b. if some resources were loaded and can be displayed, partially loaded website should be visible
    c. pixel is sent.

Definition of Done (Internal Only):

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 15 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 18

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@dus7 dus7 marked this pull request as ready for review November 7, 2024 12:41
@dus7 dus7 requested a review from jaceklyp November 7, 2024 12:41
Copy link

github-actions bot commented Nov 7, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against 8bb4d72

@dus7 dus7 merged commit 5879142 into main Nov 13, 2024
14 checks passed
@dus7 dus7 deleted the mariusz/stop-loading branch November 13, 2024 20:43
samsymons added a commit that referenced this pull request Nov 14, 2024
# By Daniel Bernal (3) and others
# Via GitHub
* main:
  Remove the `ld_classic` build setting (#3575)
  text zoom improvements (#3509)
  Add support for local overrides for feature flags (#3571)
  pixels for bookmarks > favorites tab (#3572)
  Sync BSK with macos (#3561)
  Add possibility to stop page loading (#3553)
  [DuckPlayer] Overlay Usage Pixels (#3565)
  Update pr.yml
  Update pr.yml

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
dus7 added a commit that referenced this pull request Nov 20, 2024
Task/Issue URL:
https://app.asana.com/0/1206226850447395/1208790263070149/f
Tech Design URL:
CC:

**Description**:

Caused by #3553.
Unnecessary text field clean was performed when `OmniBarState` changed
the internal value of `isLoading` without changing the state kind. This
caused suggestion tray controller with favorites to appear.

**Steps to test this PR**:
1. Turn off automatic data clearing on app exit.
2. Add at least one favorite.
3. Open tab with some url address.
4. Relaunch the app.
5. Verify suggestions tray is not shown and favorites are not visible
while the tab is loading.

**Definition of Done (Internal Only)**:

* [ ] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

**Orientation Testing**:

* [ ] Portrait
* [ ] Landscape

**Device Testing**:

* [ ] iPhone SE (1st Gen)
* [ ] iPhone 8
* [ ] iPhone X
* [ ] iPhone 14 Pro
* [ ] iPad

---
###### Internal references:
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants