Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

FNX-14508 ⁃ For #11903: Fix private custom tabs #13327

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

NotWoods
Copy link
Contributor

@NotWoods NotWoods commented Aug 5, 2020

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

After merge

  • Milestone: Make sure issues finished by this pull request are added to the milestone of the version currently in development.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@codecov-commenter
Copy link

Codecov Report

Merging #13327 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #13327      +/-   ##
============================================
- Coverage     28.48%   28.48%   -0.01%     
- Complexity     1046     1047       +1     
============================================
  Files           420      420              
  Lines         16968    16970       +2     
  Branches       2200     2202       +2     
============================================
  Hits           4834     4834              
- Misses        11786    11788       +2     
  Partials        348      348              
Impacted Files Coverage Δ Complexity Δ
...n/java/org/mozilla/fenix/IntentReceiverActivity.kt 74.35% <100.00%> (+1.38%) 7.00 <5.00> (+1.00)
...mponents/searchengine/FenixSearchEngineProvider.kt 62.16% <0.00%> (-1.81%) 13.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f319b45...d0b1ec7. Read the comment docs.

components.analytics.metrics.track(Event.OpenedLink(Event.OpenedLink.Mode.NORMAL))
}

val processor = getIntentProcessors(private).firstOrNull { it.process(intent) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So AFAICT this getIntentProcessors will also process externalAppIntentProcessors and others. Before even though it wasn't working (lol) it was attempting to just add this extra on the custom tab and intent processors. Will there be any bad side effects from adding this extra to other intent entry points?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There shouldn't be side effects when we add extra intents. If we want to be super safe we can set the boolean on both this.intent (before) and the home activity intent (now).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry that was a confusing comment. I meant as an example - now the TWA/PWA externalAppIntentProcessors will also be attaching PRIVATE_BROWSING_MODE, right? Does that mean PWAs will also be attempting to present / be in PBM?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly we wanted it to work that way in the first place, so if they do present in PBM that fixes another bug :)

We can do another pass in the future to re-evaulate what data is getting passed in intents like this.

@NotWoods NotWoods merged commit d45af2a into mozilla-mobile:master Aug 5, 2020
@NotWoods NotWoods deleted the 11903_private-custom-tab branch August 5, 2020 23:24
@data-sync-user data-sync-user changed the title For #11903: Fix private custom tabs FNX-14508 ⁃ For #11903: Fix private custom tabs Aug 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants