Open Bug 921957 Opened 6 years ago Updated 4 years ago

RemoteWebProgress' request stub doesn't have a cancel method

Categories

(Firefox :: General, defect)

defect
Not set

Tracking

()

Tracking Status
e10s + ---

People

(Reporter: markh, Unassigned)

References

(Blocks 2 open bugs)

Details

The test browser_canonizeURL.js adds a progress listener and the test checks request.originalURI, but gets undefined.

Looking at RemoteWebProgress.jsm, a RemoteWebProgressRequest() object is used a a "stub" for the request and it only supplies a 'uri' attribute.
and browser_keywordSearch.js
Mass tracking-e10s flag change. Filter bugmail on "2be0fcce-e36a-4e2c-aa80-0e3d33eb5406".
tracking-e10s: --- → +
Trying this now locally, canonizeURL succeeds, but browser_keywordSearch.js still fails because it tries to cancel the search request, which fails with:

7 INFO TEST-PASS | chrome://mochitests/content/browser/browser/base/content/test/general/browser_keywordSearch.js | search URL was loaded 
8 INFO Actual URI: https://www.google.com/search?q=test+search&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-a&channel=fflb
9 INFO Console message: [JavaScript Error: "[Exception... "JavaScript component does not have a method named: "cancel"'JavaScript component does not have a method named: "cancel"' when calling method: [nsIRequest::cancel]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame :: chrome://mochitests/content/browser/browser/base/content/test/general/browser_keywordSearch.js :: onLocationChange :: line 54"  data: no]" {file: "chrome://browser/content/tabbrowser.xml" line: 531}]
10 INFO Console message: 1415203530774	Services.HealthReport.HealthReporter	WARN	Saved state file does not exist.
11 INFO Console message: 1415203530774	Services.HealthReport.HealthReporter	WARN	No prefs data found.
FATAL ERROR: Non-local network connections are disabled and a connection attempt to www.google.com (74.125.138.99) was made.
You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.
TEST-INFO | Main app process: killed by SIGHUP
12 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/general/browser_keywordSearch.js | application terminated with exit code 1
runtests.py | Application ran for: 0:00:12.884802
zombiecheck | Reading PID log: /var/folders/2f/q_l6g8d13fzc8qcn4wmllmrc0000gn/T/tmpfpolDZpidlog
PROCESS-CRASH | chrome://mochitests/content/browser/browser/base/content/test/general/browser_keywordSearch.js | application crashed [None]
Blocks: 1080801
Summary: RemoteWebProgress' request stub doesn't have originalURI attribute → RemoteWebProgress' request stub doesn't have a cancel method
browser_keywordSearch.js was re-enabled in bug 1093756 and has been working fine.
You need to log in before you can comment on or make changes to this bug.