Skip to content
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 LegacyPromise in src/core/worker.js #4728

Merged
merged 1 commit into from
May 5, 2014
Merged

Remove LegacyPromise in src/core/worker.js #4728

merged 1 commit into from
May 5, 2014

Conversation

Snuffleupagus
Copy link
Collaborator

Depends on PR #4725.

I wasn't sure what to make of #4430 (comment), so thus far this PR just replaces the Promises.

Another slight issue that I came across is the way that incorrect passwords are currently handled (see worker.js#L256-L257 and pdf_manager.js#L70-L72). We basically reach into the pdfManager object and create a promise there, which seem all kinds of wrong :-)
I've attempted to rectify this situation, and the patch does work, but I'm not sure if this is the best solution.

I will squash the commits once this is ready to be merged.

@Snuffleupagus Snuffleupagus mentioned this pull request May 2, 2014
4 tasks
passwordChanged: function BasePdfManager_passwordChanged() {
this._passwordChangedCapability = createPromiseCapability();
return this._passwordChangedCapability.promise;
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm okay with this change.

@yurydelendik
Copy link
Contributor

looks good

@Snuffleupagus Snuffleupagus changed the title [WIP] Remove LegacyPromise in src/core/worker.js Remove LegacyPromise in src/core/worker.js May 2, 2014
@Snuffleupagus
Copy link
Collaborator Author

Re-based and squashed.

@yurydelendik
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @yurydelendik received. Current queue size: 2

Live output at: http://107.22.172.223:8877/8b62435b88c43cc/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2014

From: Bot.io (Linux)


Received

Command cmd_test from @yurydelendik received. Current queue size: 2

Live output at: http://107.21.233.14:8877/02b43eb24d8dece/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2014

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/8b62435b88c43cc/output.txt

Total script time: 21.80 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/02b43eb24d8dece/output.txt

Total script time: 25.64 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@yurydelendik
Copy link
Contributor

/botio-windows preview

@pdfjsbot
Copy link

pdfjsbot commented May 5, 2014

From: Bot.io (Windows)


Received

Command cmd_preview from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/be70710f88bf7d4/output.txt

yurydelendik added a commit that referenced this pull request May 5, 2014
…er.js

Remove LegacyPromise in src/core/worker.js
@yurydelendik yurydelendik merged commit 5fb42f6 into mozilla:master May 5, 2014
@yurydelendik
Copy link
Contributor

Thank you for the patch

@Snuffleupagus Snuffleupagus deleted the remove-LegacyPromise-worker.js branch May 5, 2014 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants