Closed
Bug 1190330
Opened 9 years ago
Closed 9 years ago
Test coverage for webRequest extension API
Categories
(Firefox :: Extension Compatibility, defect)
Firefox
Extension Compatibility
Tracking
()
RESOLVED
FIXED
People
(Reporter: gkrizsanits, Assigned: billm)
References
Details
Attachments
(1 file)
14.39 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•9 years ago
|
||
This test is largely copied from toolkit/modules/tests/browser/browser_WebRequest.js.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Attachment #8651401 -
Flags: review?(gkrizsanits)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8651401 [details] [diff] [review]
patch
Review of attachment 8651401 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/extensions/test/extensions/webrequest/background.js
@@ +31,5 @@
> + if (details.url.startsWith(BASE)) {
> + requested.push(details.url);
> +
> + if (savedTabId == -1) {
> + browser.test.assertTrue(details.tabId !== undefined, "tab ID defined");
I know this is the original API, but I'm a bit tempted to just define is/ok/etc. too on top of them since browser.test.assertTrue looks just painfully bloated :( What do you think?
Attachment #8651401 -
Flags: review?(gkrizsanits) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Accidentally landed this with the wrong bug number:
https://hg.mozilla.org/integration/mozilla-inbound/rev/91e5acc46643
I'll close this bug out when the other one is closed.
Assignee | ||
Comment 4•9 years ago
|
||
Fabrice, I had to land this with b2g support disabled because of a crash when loading a process script:
https://treeherder.mozilla.org/logviewer.html#?job_id=10650232&repo=try
It seems like we're trying to load the process script into a Nuwa process.
Is there any chance you can look into this? It would be nice to have webRequest support on b2g.
Flags: needinfo?(fabrice)
Comment 5•9 years ago
|
||
(In reply to Bill McCloskey (:billm) from comment #4)
> Fabrice, I had to land this with b2g support disabled because of a crash
> when loading a process script:
> https://treeherder.mozilla.org/logviewer.html#?job_id=10650232&repo=try
> It seems like we're trying to load the process script into a Nuwa process.
>
> Is there any chance you can look into this? It would be nice to have
> webRequest support on b2g.
I'm working on that in bug 1198970
Updated•9 years ago
|
Flags: needinfo?(fabrice)
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 6•9 years ago
|
||
fwiw, I pushed to try with a b2g implementation of webRequest, and after a Nuwa preloading patch landed (bug 1166207). It seems that we don't crash anymore, but still don't pass.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=990a127750a8
You need to log in
before you can comment on or make changes to this bug.
Description
•