Closed
Bug 1466349
Opened 3 years ago
Closed 3 years ago
Followup to 1456485, make Screenshots work on PDFs
Categories
(WebExtensions :: General, defect, P1)
Tracking
(firefox-esr52 unaffected, firefox-esr6061+ verified, firefox60 wontfix, firefox61+ verified, firefox62+ verified)
VERIFIED
FIXED
mozilla62
People
(Reporter: zombie, Assigned: zombie)
References
Details
Attachments
(3 files)
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
ianbicking
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr60+
|
Details |
There are a few issues, the main being that Screenshots is an embedded WE, which doesn't get passed proper addonData flags to enable privileged status and mozillaAddons permission.
| Assignee | ||
Updated•3 years ago
|
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 3•3 years ago
|
||
Do we need to add a similar exception to manifest.json for reader mode too?
| Assignee | ||
Updated•3 years ago
|
Attachment #8982843 -
Flags: review?(aswan)
Attachment #8982844 -
Flags: review?(jhirsch)
Attachment #8982844 -
Flags: review?(aswan)
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•3 years ago
|
Attachment #8982919 -
Flags: review?(aswan)
| Assignee | ||
Comment 9•3 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #3) > Do we need to add a similar exception to manifest.json for reader mode too? Added.
Comment 10•3 years ago
|
||
Comment on attachment 8982919 [details] Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns I can confirm that the Try builds are working perfectly with both the PDF viewer and Reader Mode :)
Attachment #8982919 -
Flags: feedback+
Updated•3 years ago
|
status-firefox60:
--- → wontfix
status-firefox61:
--- → affected
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → affected
tracking-firefox61:
--- → +
tracking-firefox62:
--- → +
tracking-firefox-esr60:
--- → 61+
Comment 11•3 years ago
|
||
| mozreview-review | ||
Comment on attachment 8982843 [details] Bug 1466349 part 1 - Enable passing addonData flags to embedded WE, https://reviewboard.mozilla.org/r/248706/#review255098 ::: commit-message-8c926:1 (Diff revision 2) > +Bug 1466349 part 1 - Enable passing addonData flags to embedded WE This patch also fixes the creation of the matcher for origin permissions in child processes, please mention that in the commit message. ::: toolkit/components/extensions/LegacyExtensionsUtils.jsm:136 (Diff revision 2) > + * Additional data to pass to the Extension constructor. > * > * @returns {Promise<LegacyContextAPI>} A promise which resolve to the API exposed to the > * legacy context. > */ > - startup(reason) { > + startup(reason, addonData = null) { nit: could just make the default here be {} and avoid the || below
Attachment #8982843 -
Flags: review?(aswan) → review+
Comment 12•3 years ago
|
||
| mozreview-review | ||
Comment on attachment 8982844 [details] Bug 1466349 part 2 - Pass addonData to embedded Screenshots WE, add permissions https://reviewboard.mozilla.org/r/248708/#review255102
Attachment #8982844 -
Flags: review?(aswan) → review+
Comment 13•3 years ago
|
||
| mozreview-review | ||
Comment on attachment 8982919 [details] Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns https://reviewboard.mozilla.org/r/248744/#review255106 ::: commit-message-64fd3:1 (Diff revision 2) > +Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns Please add an explanation for why we want to do such a think.
Attachment #8982919 -
Flags: review?(aswan) → review+
| Assignee | ||
Updated•3 years ago
|
Attachment #8982844 -
Flags: review?(jhirsch) → review?(ianb)
Comment 14•3 years ago
|
||
| mozreview-review | ||
Comment on attachment 8982844 [details] Bug 1466349 part 2 - Pass addonData to embedded Screenshots WE, add permissions https://reviewboard.mozilla.org/r/248708/#review255518 I've created a Screenshots bug for including this patch: https://github.com/mozilla-services/screenshots/issues/4528
Attachment #8982844 -
Flags: review?(ianb) → review+
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 18•3 years ago
|
||
Pushed by tomica@gmail.com: https://hg.mozilla.org/integration/autoland/rev/b84f57938f8b part 1 - Enable passing addonData flags to embedded WE, r=aswan https://hg.mozilla.org/integration/autoland/rev/e04c7ccfd50e part 2 - Pass addonData to embedded Screenshots WE, add permissions r=aswan,ianbicking https://hg.mozilla.org/integration/autoland/rev/0bb149ce1d1a part 3 - Ignore ignorePath for privileged about: MatchPatterns r=aswan
| Assignee | ||
Comment 19•3 years ago
|
||
Comment on attachment 8982919 [details] Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns > Approval Request Comment > [Feature/Bug causing the regression]: Bug 1436482. > [User impact if declined]: Firefox Screenshots feature doesn't work on PDF pages. > [Is this code covered by automated tests?]: Partially. Added tests to cover underlying WE support, not sure if the Screenshots team wants to add full integration testing. > [Has the fix been verified in Nightly?]: No, only manual testing done from the Try build by Ryan^. > [Needs manual test from QE? If yes, steps to reproduce]: Yes, see bug 1456485. > [List of other uplifts needed for the feature/fix]: Bug 1456485. > [Is the change risky?]: Somewhat. > [Why is the change risky/not risky?]: It only enables privileged (mozilla-signed) extensions to access protected pages. > [String changes made/needed]: None.
Attachment #8982919 -
Flags: approval-mozilla-beta?
| Assignee | ||
Comment 20•3 years ago
|
||
(In reply to Tomislav Jovanovic :zombie from comment #19) > > Approval Request Comment > > [List of other uplifts needed for the feature/fix]: > Bug 1456485. Oops, forgot to note bug 1465544 as well.
Comment 21•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b84f57938f8b https://hg.mozilla.org/mozilla-central/rev/e04c7ccfd50e https://hg.mozilla.org/mozilla-central/rev/0bb149ce1d1a
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Updated•3 years ago
|
Flags: qe-verify+
Comment 22•3 years ago
|
||
Comment on attachment 8982919 [details] Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns While I'd still like the SV folks to give this a more detailed look, I can at least confirm that everything appears to be working as expected with the latest Nightly build including these patches. Approved for 61.0b12.
Attachment #8982919 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 23•3 years ago
|
||
| bugherderuplift | ||
https://hg.mozilla.org/releases/mozilla-beta/rev/68167e946240 https://hg.mozilla.org/releases/mozilla-beta/rev/4a309778103f https://hg.mozilla.org/releases/mozilla-beta/rev/d36c7c1ab6ac
Flags: in-testsuite+
Comment 24•3 years ago
|
||
I have verified this issue on the latest Nightly (62.0a1 Build ID: 20180606083531) build and the issue is no longer reproducible. Firefox Screenshots works now on PDF pages. Tested on Windows 7 x64, Windows 10 x64, Mac Os 10.13 and Arch Linux.
Comment 25•3 years ago
|
||
Comment on attachment 8982919 [details] Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns Verified on Beta, taking for ESR 60.1 as well.
Attachment #8982919 -
Flags: approval-mozilla-esr60+
Comment 26•3 years ago
|
||
| bugherderuplift | ||
https://hg.mozilla.org/releases/mozilla-esr60/rev/e0c623e9e9ab https://hg.mozilla.org/releases/mozilla-esr60/rev/732cc9a73220 https://hg.mozilla.org/releases/mozilla-esr60/rev/07ae2a15b7ba
Comment 27•3 years ago
|
||
I have verified this issue on the latest Beta (61.0b14, Build ID: 20180614135649) and the issue is no longer reproducible. Tested on Windows 7 x64, Windows 10 x64, Mac Os 10.13 and Arch Linux. The issue is still reproducible on Firefox ESR 60.0 because of bug 1467924 that should also be uplifted in ESR 60 (see bug 1467924 comment 10).
Updated•3 years ago
|
Product: Toolkit → WebExtensions
Comment 28•3 years ago
|
||
I have verified the issue on latest ESR (60.1.0, Build ID 20180621121604) and the issue is no longer reproducible. Tested on Windows 10 x64, Windows 7 x64, Mac 10.13 and Arch Linux 4.12.
You need to log in
before you can comment on or make changes to this bug.
Description
•