Closed Bug 1190330 Opened 9 years ago Closed 9 years ago

Test coverage for webRequest extension API

Categories

(Firefox :: Extension Compatibility, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gkrizsanits, Assigned: billm)

References

Details

Attachments

(1 file)

Blocks: 1185459
Attached patch patchSplinter Review
This test is largely copied from toolkit/modules/tests/browser/browser_WebRequest.js.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Attachment #8651401 - Flags: review?(gkrizsanits)
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+
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.
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)
Depends on: 1198970
(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
Flags: needinfo?(fabrice)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: