Skip to content

Issue #2040. Handle a single details param as JSON encoded data.#2041

Merged
miketaylr merged 2 commits intomasterfrom
issues/2040/1
Jan 29, 2018
Merged

Issue #2040. Handle a single details param as JSON encoded data.#2041
miketaylr merged 2 commits intomasterfrom
issues/2040/1

Conversation

@miketaylr
Copy link
Copy Markdown
Member

No more multiple details params, but instead it will be sent as a JSON string and parsed by the client.

@miketaylr
Copy link
Copy Markdown
Member Author

Need to update tests...

@miketaylr
Copy link
Copy Markdown
Member Author

r? @karlcow
r? @zoepage

@miketaylr miketaylr requested review from karlcow and zoepage January 26, 2018 22:53
Copy link
Copy Markdown
Member

@karlcow karlcow left a comment

Choose a reason for hiding this comment

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

@miketaylr Thanks. A couple of comments, mostly nit.

But one where I wonder if in terms of reporting UI we could improve a bit the rendering.

Comment thread webcompat/static/js/lib/bugform.js Outdated
}

// If we have one or more details params,
// If we have a details params, JSON decode it and

This comment was marked as abuse.

This comment was marked as abuse.

var DETAILS_STRING =
"Encountered error: NS_ERROR_DOM_MEDIA_DEMUXER_ERR (0x806e000c)%0ALocation: virtual%0ARefPtrMP4Demuxer::InitPromise mozilla::MP4Demuxer::Init()%0AError information:%0AIncomplete MP4 metadata%0AMedia URL: file:///Users/potch/Documents/mozilla/media.mp4";
var DETAILS_STRING2 = "Encountered+error:+NS_ERROR_DOM_MEDIA_DEMUXER_ERR";
"%5B%22gfx.webrender.all%3A+false%22%2C%22gfx.webrender.blob-images%3A+2%22%2C%22gfx.webrender.enabled%3A+false%22%2C%22image.mem.shared%3A+2%22%2C%22layout.css.servo.enabled%3A+true%22%5D";

This comment was marked as abuse.

// + (SPACE) to %20 before decoding
.replace(/\+/g, "%20")
)
).join("\n")

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

// add that to the end of the steps to reproduce textarea
var details = location.href.match(/details=([^&]*)/g);
if (details !== null) {
var details = location.href.match(/details=([^&]*)/);

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

"gfx.webrender.all:+false",
"+ not found in decoded string"
);
assert.include(

This comment was marked as abuse.

@miketaylr
Copy link
Copy Markdown
Member Author

Thanks @karlcow. Will update before merging.

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.

2 participants