Opened on 10/09/2015 at 11:47:07 AM

Closed on 09/18/2017 at 01:56:59 PM

#3184 closed change (fixed)

As a user i want to see the whitelist functionality in the safari share dialog

Reported by: sven Assignee: ashephard
Priority: P2 Milestone: Adblock-Plus-for-iOS-next
Module: Adblock-Plus-for-iOS/macOS Keywords: salsita 2015q4
Cc: mario, jand, vojtab, lisabielik Blocked By: #5575
Blocking: #4791, #5667 Platform: iOS
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29517586/

Description (last modified by mario)

Background

In #3165 we're currently implementing the whitelist functionality into Adblock Plus for iOS. With this functionality you're able to type in URLs into a form field, which will be whitelisted in Safari. There is no possibility to do this setting in Safari itself yet.

What to change

Create an item called "Add to Whitelist" with the Adblock Plus logo placed in the Safari share dialog. After pressed, a dialog should appear with the following structure as shown in this mockup:

UI

  1. Headline: Adblock Plus
  2. Text: The following website will be added to the whitelist.
  3. Website Details:
    1. Website title (stripped indicated by an ... if too long)
    2. Website URL (stripped indicated by an ... if too long)
  4. Text: Content will not be blocked on this website. It may take a few seconds for this setting to take effect.
  5. Left button: Cancel
  6. Right button: Done

Logic

  1. If the left button is clicked, the notification will be closed and the user will be brought back to Safari.
  2. If the left button is clicked, the notification will be closed and the user will be brought back to Safari. Based on #3165, an exception rule is created, which leads to ABP not blocking any more ads on this website. The whitelisted website is added to the whitelist section of the ABP frontend. (See #3165 for more detailed information on how whitelisting is achieved.)

Screenshots

Icons

Attachments (9)

Adblock Plus iOS 19 - whitelist share dialog.png (186.5 KB) - added by sven on 10/09/2015 at 11:55:23 AM.
dotted separator.png (17.3 KB) - added by sven on 10/09/2015 at 12:01:28 PM.
Adblock Plus logo.png (22.0 KB) - added by sven on 10/09/2015 at 12:03:07 PM.
Adblock Plus thumbnail.png (21.1 KB) - added by sven on 10/09/2015 at 12:07:16 PM.
Adblock Plus iOS 19 - whitelist dialog.2.png (107.8 KB) - added by sven on 10/09/2015 at 12:11:24 PM.
Adblock Plus iOS 19 - whitelist dialog styleguide.png (121.4 KB) - added by sven on 10/09/2015 at 12:45:37 PM.
Adblock Plus iOS 19 - whitelist dialog.png (111.6 KB) - added by sven on 10/09/2015 at 12:47:06 PM.
211951537.png (66.5 KB) - added by mario on 01/12/2017 at 09:37:14 AM.
211951537_2.png (65.0 KB) - added by mario on 01/12/2017 at 10:58:37 AM.

Download all attachments as: .zip

Change History (49)

Changed on 10/09/2015 at 11:55:23 AM by sven

comment:1 Changed on 10/09/2015 at 11:57:50 AM by sven

  • Cc mario jand vojtab added
  • Description modified (diff)

comment:2 Changed on 10/09/2015 at 11:59:53 AM by mario

  • Cc lisabielik added

Changed on 10/09/2015 at 12:01:28 PM by sven

Changed on 10/09/2015 at 12:03:07 PM by sven

comment:3 Changed on 10/09/2015 at 12:04:10 PM by sven

  • Description modified (diff)

Changed on 10/09/2015 at 12:07:16 PM by sven

comment:4 Changed on 10/09/2015 at 12:08:07 PM by sven

  • Description modified (diff)

Changed on 10/09/2015 at 12:11:24 PM by sven

comment:5 Changed on 10/09/2015 at 12:12:00 PM by sven

  • Description modified (diff)

comment:6 Changed on 10/09/2015 at 12:14:25 PM by sven

  • Description modified (diff)

Changed on 10/09/2015 at 12:45:37 PM by sven

comment:7 Changed on 10/09/2015 at 12:46:21 PM by sven

  • Description modified (diff)

Changed on 10/09/2015 at 12:47:06 PM by sven

comment:8 Changed on 10/09/2015 at 12:47:47 PM by sven

  • Description modified (diff)

comment:9 Changed on 10/12/2015 at 07:28:33 AM by philll

"Clicking the "Confirm" button leads you back to the current website and closes the share dialog." I guess that should also make use of the functionality that should have been described in #3165

comment:10 Changed on 10/12/2015 at 08:03:48 AM by mario

  • Description modified (diff)

Added more information about what happens when "Confirm" is clicked.

comment:11 Changed on 10/12/2015 at 09:20:39 AM by mario

  • Description modified (diff)

comment:12 Changed on 10/12/2015 at 11:22:28 AM by mario

  • Keywords salsita added

comment:13 follow-up: Changed on 10/12/2015 at 12:58:29 PM by vojtab

1) In the popup modal, there are only Edit and Confirm options. Shouldn't there be an option to cancel as well? Otherwise there is no way to cancel adding url to whitelist (except from actually having to open the content blocker app).

2) Shouldn't there be also an option for removing the site from whitelist, if the current site is already among whitelisted websites? I am, however, not sure if it is easily possible to identify whether the page is in whitelist or not from Safari app extension (Jan will know that).

comment:14 in reply to: ↑ 13 Changed on 10/12/2015 at 01:15:02 PM by mario

Replying to vojtab:

1) In the popup modal, there are only Edit and Confirm options. Shouldn't there be an option to cancel as well? Otherwise there is no way to cancel adding url to whitelist (except from actually having to open the content blocker app).

I have to agree - there should indeed be the option to cancel it as well. Unfortunately we don't have the ability to easily revise the style guide of this modal dialog until the end of next week. I'm not familiar with this kind of modal dialogs: Would it be twice the effort to add a cancel button afterwards, as soon as we're ready to provide the style guide?

2) Shouldn't there be also an option for removing the site from whitelist, if the current site is already among whitelisted websites? I am, however, not sure if it is easily possible to identify whether the page is in whitelist or not from Safari app extension (Jan will know that).

As of now we don't want to add too many buttons the share functionality. I can only think of showing a "Remove from Whitelist"-button, that is shown instead of the current "Add to whitelist"-button (as soon as the site is already whitelisted). However, this can be treated as a new feature/issue.
Besides that, there's already the possibility to remove it from the whitelist as soon as #3165 is implemented.

comment:15 follow-up: Changed on 10/12/2015 at 01:16:47 PM by vojtab

Thanks Mario. Regarding 1) there is common way how to show multiple buttons on modal in iOS - see example http://nshipster.s3.amazonaws.com/uialertcontroller-alert-one-two-three-cancel.png

comment:16 in reply to: ↑ 15 Changed on 10/12/2015 at 01:22:13 PM by mario

Replying to vojtab:

Thanks Mario. Regarding 1) there is common way how to show multiple buttons on modal in iOS - see example http://nshipster.s3.amazonaws.com/uialertcontroller-alert-one-two-three-cancel.png

Using this modal could you still implement the fonts and separator above the buttons as shown in the styleguide?
Would it be twice the effort to stick to the 2 buttons and add a cancel button afterwards?

comment:17 Changed on 10/15/2015 at 11:41:46 AM by jand

It is ok to have two buttons for now, and it can be simply extended later.

comment:18 Changed on 10/23/2015 at 03:05:04 PM by sven

  • Description modified (diff)

comment:19 Changed on 11/09/2015 at 02:55:14 PM by mario

  • Keywords 2015q4 added

comment:20 Changed on 11/09/2015 at 03:34:48 PM by lisabielik

The text should read:

"will be added to your Adblock Plus whitelist."
"This means that no content will be blocked on this domain. It may take a few seconds for this setting to take effect."

Last edited on 11/09/2015 at 03:35:13 PM by lisabielik

comment:21 Changed on 11/13/2015 at 10:47:22 AM by mario

  • Priority changed from Unknown to P2

Changed 2015q4-issues to P2

comment:22 Changed on 12/14/2015 at 02:44:09 PM by mario

  • Ready set

comment:23 Changed on 12/17/2015 at 01:26:24 PM by sven

  • Description modified (diff)

comment:24 Changed on 11/23/2016 at 04:59:54 PM by jand

During preparation for review I run into this iOS 10 issue:
The background of the proposed whitelisting dialog is no longer transparent and it is only black. I did not managed to get any working solution. It seems to, that any UI of action extension must cover entire screen.

I come with those two solution:
1) Make the action extension the sharing extension, since both type of extension appears in same type of dialog (sharing extension are listed in upper row). Technically this is not problem, it is only matter of configuration. We just need new coloured images for icons. The problem is just in the logic, that we do not share anything. It might be confusing for client.

2) Make new design for dialog to cover entire screen with possibly more feature. For example, we might editing functionality for whitelisted link, which is currently managed by host application.

comment:25 Changed on 12/05/2016 at 10:05:43 AM by mario

  • Ready unset

We'll go for the second option, as making this feature available in the "sharing extension" might confuse users. We'll provide a new screen shot/style guide as soon as possible.

comment:26 Changed on 01/12/2017 at 09:36:02 AM by mario

  • Description modified (diff)
  • Ready set

Changed on 01/12/2017 at 09:37:14 AM by mario

comment:27 Changed on 01/12/2017 at 09:37:50 AM by mario

Ready from our side. Text reviewed by Lisa via InVision

comment:28 Changed on 01/12/2017 at 09:39:22 AM by mario

  • Description modified (diff)

comment:29 Changed on 01/12/2017 at 10:37:07 AM by pavelz

@mario we found an unsettled issue. Favicon is possible, but technically complex. Martin is OK with leaving it out. This didn't get communicated from Martin/Jan InVision discussion
https://projects.invisionapp.com/d/main#/console/9140728/211951537/comments/76388530

Make a followup story if you wish. But it should not block progressing and closing this archeologic feature.

comment:30 Changed on 01/12/2017 at 10:54:58 AM by mario

  • Blocking 4791 added

Changed on 01/12/2017 at 10:58:37 AM by mario

comment:31 Changed on 01/12/2017 at 10:59:43 AM by mario

  • Description modified (diff)

@pavelz, removed the favicon from the scope of this issue and filed #4791 as a follow up.

comment:32 Changed on 01/13/2017 at 01:27:43 PM by jand

@mario: I found another problem with new dialog. In controller with whitelisted websites of ABP application we do not display whitelisted website description. Therefore, it does not make sense to ask for description (or title) in action dialog.

Should I add descriptions to whitelisted websites in host application or should I remove description field in action dialog?

comment:33 Changed on 01/16/2017 at 10:23:13 AM by mario

@jand, as discussed in IRC, we'll file a follow-up issue to introduce the title of websites in the host app as well. So we can proceed with this issue.

comment:34 Changed on 08/16/2017 at 04:30:33 PM by ashephard

  • Owner set to ashephard

comment:35 Changed on 08/16/2017 at 04:30:46 PM by ashephard

  • Status changed from new to reviewing

comment:36 Changed on 08/16/2017 at 04:32:33 PM by ashephard

Taken the code from Salsita's repo and placed it on my own local repo in a branch (feature/3184v2). Code is currently in review in Reitveld.

comment:37 Changed on 08/25/2017 at 10:28:07 AM by dzhang

  • Blocked By 5575 added

comment:38 Changed on 08/30/2017 at 02:51:53 PM by ashephard

  • Review URL(s) modified (diff)

comment:39 Changed on 09/12/2017 at 09:28:24 PM by dzhang

  • Blocking 5667 added

comment:40 Changed on 09/18/2017 at 01:56:59 PM by ashephard

  • Milestone set to Adblock-Plus-for-iOS-next
  • Resolution set to fixed
  • Status changed from reviewing to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from ashephard.
 
Note: See TracTickets for help on using tickets.