Closed Bug 1713693 Opened 3 years ago Closed 3 years ago

Add an ETP shim for Doubleclick

Categories

(Core :: Privacy: Anti-Tracking, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: twisniewski, Assigned: twisniewski)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Sites often break when pubads or securepubads are blocked. Shimming them will prevent various kinds of breakage ranging from sites not properly loading to videos not appearing.

Blocks: 1699136
Blocks: tp-admiral
No longer blocks: 1694433, 1699136
Blocks: 1694433
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED

Always fun to see a duplicate filename error when that file is 0-sized :)

Flags: needinfo?(twisniewski)
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52a7608366bd Add a SmartBlock shim for Doubleclick; r=denschub,webcompat-reviewers

Wait, what? There is no other file named empty-shim.txt in-tree that I can see. So it's not the duplicate filename which isn't allowed, but we aren't allowed to have more than one empty file in-tree? That seems oddly heavy-handed, and I think my only option will be to explicitly allow it as a dupe.

Flags: needinfo?(twisniewski)
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/21e5a34cf792 Add a SmartBlock shim for Doubleclick; r=denschub,webcompat-reviewers

Ah, I used to wrong format for the allowlist this time. Sorry for the churn.

Flags: needinfo?(twisniewski)
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a0e84f443e91 Add a SmartBlock shim for Doubleclick; r=denschub,webcompat-reviewers

Ok, I'm fresh out of ideas as to what's going on now from the error in the log. I'll have to ask around to find out what might be going on here.

Flags: needinfo?(twisniewski)

:glandium, :egao, would either of you have any idea what's going on here? This is the part of the log with the error for the current patch version:

[task 2021-07-06T20:10:43.352Z] 20:10:43     INFO -  package> WARNING: Found 48 duplicated files taking 8017589 bytes (uncompressed)
[task 2021-07-06T20:10:43.352Z] 20:10:43     INFO -  package> ERROR: The following duplicated files are not allowed:
[task 2021-07-06T20:10:43.352Z] 20:10:43     INFO -  package> removed-files
[task 2021-07-06T20:10:43.352Z] 20:10:43    ERROR -  package> make[5]: *** [/builds/worker/checkouts/gecko/toolkit/mozapps/installer/packager.mk:26: stage-package] Error 1
[task 2021-07-06T20:10:43.352Z] 20:10:43     INFO -  package> make[5]: Leaving directory '/builds/worker/workspace/obj-build/browser/installer'
[task 2021-07-06T20:10:43.353Z] 20:10:43    ERROR -  package> make[4]: *** [/builds/worker/checkouts/gecko/toolkit/mozapps/installer/packager.mk:111: make-package] Error 2
[task 2021-07-06T20:10:43.353Z] 20:10:43    ERROR -  package> make[3]: *** [/builds/worker/checkouts/gecko/config/rules.mk:355: default] Error 2
[task 2021-07-06T20:10:43.353Z] 20:10:43    ERROR -  package> make[2]: *** [/builds/worker/checkouts/gecko/browser/build.mk:6: package] Error 2
[task 2021-07-06T20:10:43.353Z] 20:10:43    ERROR -  make[1]: *** [/builds/worker/checkouts/gecko/build/moz-automation.mk:110: automation/package] Error 2
[task 2021-07-06T20:10:43.353Z] 20:10:43     INFO -  make[1]: *** Waiting for unfinished jobs....

The file throwing it off is again an empty file named empty-shim.txt.

Flags: needinfo?(mh+mozilla)
Flags: needinfo?(egao)

The removed-files file is generated during the build and empty if GTK is used. Add an exception to allowed-dupes.mn.

:aryx, I did add these lines to allowed-dupes.mn in the patch:

# Bug 1713693 - empty-shim.txt, an intentionally blank file used by SmartBlock (0 bytes)
browser/features/webcompat@mozilla.org/shims/empty-shim.txt

Is that insufficient?

Flags: needinfo?(mh+mozilla)
Flags: needinfo?(egao)
Flags: needinfo?(aryx.bugmail)
  1. It needs to be wrapped by a #ifdef MOZ_GTK (else there will be test failures about an unused exception).
  2. The test log regards removed-files. Both files should be mention based on the other rules there.
Flags: needinfo?(aryx.bugmail)

Thanks, but I'm still not quite sure what you mean. Placing that ifdef around the code I added to allowed-dupes doesn't make the removed-files error go away, so I must be missing something (sorry if I'm being a bit slow on the uptake here!): https://treeherder.mozilla.org/jobs?repo=try&revision=48b0b7cd2cbd66c755b11aca20ffa3eca08bcc77

Flags: needinfo?(aryx.bugmail)

Add another line in your block with literally removed-files so it contains both files mentioned earlier in the log.

Flags: needinfo?(aryx.bugmail)

Oh, that's all you meant? Wow, maybe that week off did me more harm than good :S

Attachment #9230142 - Attachment is obsolete: true
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1058c8349d91 Add a SmartBlock shim for Doubleclick; r=denschub,webcompat-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Blocks: 1731910
No longer blocks: 1731910
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: