-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Remove page ID and fix tests at mozcentral #5897
Comments
Hi, I'd like to take a crack at this, if that's okay with you. Where should I start? |
Aside from creating a pull request that removes the |
Thanks @timvandermeij. I'll make pull request tonight and get a feel of what's going behind the scenes on this request. Cheers! |
They are unnecessary given the availability of data-page-number attributes, and potentially problematic with efforts to support multiple instances. This can be removed entirely once remaining dependencies have been fixed in Mozilla (See mozilla#5897)
It seems prudent to unblock ongoing web viewer work by making this preprocessor-conditional until someone at Mozilla can commit to removing the dependency entirely. See pull request #6050 |
So how do I begin in preparing the fix for the upstream tests for browser_pdfjs_zoom.js file? |
@awongCM Simplest way is to have build of mozilla-central / firefox on local computer. See https://developer.mozilla.org/en-US/docs/Simple_Firefox_build and after the Firefox is build you can play with tests (see https://developer.mozilla.org/en-US/docs/Mochitest and https://developer.mozilla.org/en-US/docs/Browser_chrome_tests). Tests for PDF.js are located at http://mxr.mozilla.org/mozilla-central/source/browser/extensions/pdfjs/test/. |
Thanks @yurydelendik I tried following the firefox_build instructions you gave me. As I'm using my Ubuntu Linux(13.0), I went over here. I had trouble getting the system boostrapping to work, thus I did a number of troubleshooting steps till I reached this line.
That failed as it saying something about Connection failed to one of the ubuntu linux servers http://ubuntu.mirror.uber.com.au Then I attempted to do different commands with
I'm really stuck now. Dont' know what to do next.. |
Sorry to hear. But setting up the Firefox build on Linux is easier than on Mac OSX or Windows. Your issue, however, not related to Firefox build itself, so perhaps try the same steps again later. Or try setting up dependencies one-by-one. |
@yurydelendik - I'm using Linux for my Firefox build. I'm aware it is Ubuntu Linux issue, which is the main blocker from getting bootstrapping to work. I'll try googling for more answers tonight and see where else this may lead to. Will keep you posted. |
I spent some time on this. With not much better luck. I even contacted the main author of the bootstrapping site. He tried assisting me in resolving this nagging issue. But none of us were successful in doing so. I'm feeling there's little much we can do as we're both clueless how this happens. I fear I may have to call it quits on this one unfortunately... Sigh |
Shall I resurrect #6050? We don't use the Firefox extension here so condititionalizing the legacy code works perfectly for us, and I believe the patch will meet all use cases including those of the Netscape team. |
@yurydelendik I r?'d you on https://bugzilla.mozilla.org/show_bug.cgi?id=1331795 for switching the mozilla-central test to using the data-page-number attribute. If I'm doing that correctly, then I'd like to get that in and then PR the changes in pdf.js to not set the id. Is that still valid/desired? |
Yes, it certainly is. The upstream patch has been merged, so if you could also create a PR for this repository, that would be great. |
I don't think we have mozcentral tests in our local repo. The upsteam bug marked as resolved. Closing the issue. |
The intent of this issue is to remove https://github.com/mozilla/pdf.js/blob/master/web/pdf_page_view.js#L115. For that, the upstream test needed to be fixed first, for which you're right that that has been done now. What still remains is the removal of that line, as discussed in #5881, since it's obsolete, so this issue is not resolved yet. |
I see, thanks |
In #5881 we have decided that we can now remove the
id
from each pagediv
as it is unused and replaced by the more flexibledata-page-number
attribute. However, there is a test case at http://mxr.mozilla.org/mozilla-central/source/browser/extensions/pdfjs/test/browser_pdfjs_zoom.js that needs to be altered before we can remove this.The text was updated successfully, but these errors were encountered: