Closed
Bug 1314493
Opened 8 years ago
Closed 8 years ago
non-e10s WebRequest failure with stream.seek
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(firefox51 fixed, firefox52 fixed)
RESOLVED
FIXED
mozilla52
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
kmag
:
review+
gchang
:
approval-mozilla-aurora+
|
Details |
This issue was unmasked by bug 1273138, with which this would be a perma-orange on non-e10s. xhr using a blob has a stream that apparently needs QI to rewind.
The larger part of this is deconstructing part of the webrequest tests, pulling out the upload tests that were added in bug 1201979.
Bug 1314492 will hopefully put future confusion to rest.
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8806571 [details]
Bug 1314493 simplify xhr webrequest tests for uploads, fix xhr blob send,
https://reviewboard.mozilla.org/r/89958/#review89470
Much better. Thank you!
::: toolkit/components/extensions/test/mochitest/test_ext_webrequest_upload.html:110
(Diff revision 1)
> + } else if (name == "onCompleted") {
> + browser.test.sendMessage("done");
> + }
> + }
> +
> + for (let name in events) {
Nit: `for (let [name, args] of Object.entries(events))`
::: toolkit/components/extensions/test/mochitest/test_ext_webrequest_upload.html:136
(Diff revision 1)
> + "webRequest",
> + "webRequestBlocking",
> + "<all_urls>",
> + ],
> + },
> + background: `(${background})()`,
Nit: No need for the stringification anymore, just: `background,`
::: toolkit/components/extensions/test/mochitest/test_ext_webrequest_upload.html:174
(Diff revision 1)
> + let xhr = new XMLHttpRequest();
> + action.searchParams.set("xhr", "1");
> + xhr.open("POST", action.href);
> + xhr.send(data);
> + action.searchParams.delete("xhr");
> + extension.awaitMessage("done").then(resolve);
Nit: No need for the `new Promise`. Just send the XUR and then return `extension.awaitMessage(...)`
::: toolkit/components/extensions/test/mochitest/test_ext_webrequest_upload.html:196
(Diff revision 1)
> +
> +
Nit: extra lines
Attachment #8806571 -
Flags: review?(kmaglione+bmo) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•8 years ago
|
||
Pushed by mixedpuppy@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/60266cddf76a
simplify xhr webrequest tests for uploads, fix xhr blob send, r=kmag
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8806571 [details]
Bug 1314493 simplify xhr webrequest tests for uploads, fix xhr blob send,
Approval Request Comment
[Feature/regressing bug #]: Bug 1303798
[User impact if declined]: This patch blocks the uplift request for Bug 1303798
[Describe test coverage new/current, TreeHerder]: This is primarily test changes
[Risks and why]: Very low, primarily test change, only adds a QI to fix a non-e10s failure case
[String/UUID change made/needed]: none
Attachment #8806571 -
Flags: approval-mozilla-aurora?
Updated•8 years ago
|
status-firefox51:
--- → affected
Comment 8•8 years ago
|
||
Comment on attachment 8806571 [details]
Bug 1314493 simplify xhr webrequest tests for uploads, fix xhr blob send,
Fix an issue related to non-e10s WebRequest failure. Take it in 51 aurora.
Attachment #8806571 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•8 years ago
|
Assignee: nobody → mixedpuppy
Comment 9•8 years ago
|
||
bugherder uplift |
Flags: in-testsuite+
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•