Closed Bug 1093221 Opened 11 years ago Closed 11 years ago

[e10s] RemoteWebNavigation.loadURI should accept and pass referrer arguments.

Categories

(Toolkit :: General, defect)

defect
Not set
normal
Points:
2

Tracking

()

RESOLVED FIXED
mozilla36
Iteration:
36.2
Tracking Status
e10s + ---

People

(Reporter: mossop, Assigned: mossop)

References

Details

Attachments

(1 file)

It should also have some direct testing.
Flags: qe-verify-
Flags: firefox-backlog+
Blocks: 1082764
Attached patch patchSplinter Review
Attachment #8516275 - Flags: review?(mconley)
Comment on attachment 8516275 [details] [diff] [review] patch Review of attachment 8516275 [details] [diff] [review]: ----------------------------------------------------------------- I do like seeing more tests. Thanks for those. :) I'm not 100% certain we need the dummy_page.html document. If a data URI suffices, it might be simpler just to use that. If, however, the dummy_page document is required, proceed. ::: toolkit/modules/tests/browser/browser.ini @@ +1,2 @@ > [DEFAULT] > +support-files = Nit - trailing ws ::: toolkit/modules/tests/browser/browser_RemoteWebNavigation.js @@ +1,5 @@ > +const { interfaces: Ci, classes: Cc, utils: Cu, results: Cr } = Components; > + > +const DUMMY = "browser/toolkit/modules/tests/browser/dummy_page.html"; > + > +function waitForLoad(browser = gBrowser.selectedBrowser) { Guh, here we go again. :/ Bug 1093566 will be nice to get fixed. @@ +25,5 @@ > + getService(Ci.nsIIOService). > + newURI(url, null, null); > +} > + > +add_task(function* test_referrer() { A quick docstring above each test quickly explaining what they're testing would be great. @@ +95,5 @@ > + null, null, null); > + yield waitForLoad(); > + > + let history = browser.webNavigation.sessionHistory; > + is(history.count, 1, "Should be two history items"); "Should be one history item". @@ +105,5 @@ > + Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY, > + null, null, null); > + yield waitForLoad(); > + > + is(history.count, 1, "Should be two history items"); "Should still be one history item" ::: toolkit/modules/tests/browser/dummy_page.html @@ +1,1 @@ > +<!DOCTYPE html> Can I assume this is required, and a data URI will not suffice?
Attachment #8516275 - Flags: review?(mconley) → review+
Referrer is a feature of HTTP so we need the dummy page. https://hg.mozilla.org/integration/fx-team/rev/e40650d15c28
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: