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

Kargo Adapter: fix extensible error #3998

Merged

Conversation

idettman
Copy link
Contributor

@idettman idettman commented Jul 15, 2019

Type of change

  • Bugfix

Description of change

Kargo Bid Adapter bugfix for non-extensible error on mobile/tablet devicetype.
Issue was introduced by: https://github.com/prebid/Prebid.js/pull/3897/files.
Cause seems to be the kargo adapter spec object properties are being changed to readOnly and Object.preventExtensions(o) is also called;

Error output (chrome debug tools with IPhoneX mode):

pbjs.js:10 Uncaught TypeError: Cannot add property _sessionId, object is not extensible
    at Object._getSessionId (pbjs.js:10)
    at Object.buildRequests (pbjs.js:10)
    at Object.callBids (pbjs.js:6)
    at pbjs.js:6
    at Array.forEach (<anonymous>)
    at Object.s.callBids (pbjs.js:6)
    at Object.run (pbjs.js:6)
    at i (pbjs.js:6)
    at done (pbjs.js:6)
    at XMLHttpRequest.onreadystatechange (pbjs.js:6)

nakamoto and others added 21 commits February 16, 2019 21:30
# Conflicts:
#	modules/advangelistsBidAdapter.js
#	test/spec/modules/advangelistsBidAdapter_spec.js
…into kargo-adapter-fix-extensible-sessionid
@bretg
Copy link
Collaborator

bretg commented Jul 15, 2019

@samuelhorwitz - FYI

@bretg bretg removed their request for review July 15, 2019 22:35
@samuelhorwitz
Copy link
Contributor

Ah good catch. Thanks

@samuelhorwitz
Copy link
Contributor

That newest change will likely break tests which rely on that variable being accessible

@idettman idettman merged commit 50d779a into prebid:master Jul 16, 2019
@idettman idettman deleted the kargo-adapter-fix-extensible-sessionid branch July 24, 2019 11:02
leonardlabat pushed a commit to criteo-forks/Prebid.js that referenced this pull request Jul 30, 2019
* Add microadBidAdapter

* Remove unnecessary encodeURIComponent from microadBidAdapter

* Submit Advangelists Prebid Adapter

* Submit Advangelists Prebid Adapter 1.1

* Correct procudtion endpoint for prebid

* analytics update with wrapper name

* add '_sessionId' to the object literal for spec

* removed error merge

* replaced obj property with sibling variable

* updated test for changes to sessionId
VideoReach pushed a commit to VideoReach/Prebid.js that referenced this pull request Aug 1, 2019
* Add microadBidAdapter

* Remove unnecessary encodeURIComponent from microadBidAdapter

* Submit Advangelists Prebid Adapter

* Submit Advangelists Prebid Adapter 1.1

* Correct procudtion endpoint for prebid

* analytics update with wrapper name

* add '_sessionId' to the object literal for spec

* removed error merge

* replaced obj property with sibling variable

* updated test for changes to sessionId
sa1omon pushed a commit to gamoshi/Prebid.js that referenced this pull request Nov 28, 2019
* Add microadBidAdapter

* Remove unnecessary encodeURIComponent from microadBidAdapter

* Submit Advangelists Prebid Adapter

* Submit Advangelists Prebid Adapter 1.1

* Correct procudtion endpoint for prebid

* analytics update with wrapper name

* add '_sessionId' to the object literal for spec

* removed error merge

* replaced obj property with sibling variable

* updated test for changes to sessionId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants