Closed
Bug 1478979
Opened 6 years ago
Closed 6 years ago
Capability pageLoadStrategy should not accept null value
Categories
(Remote Protocol :: Marionette, enhancement)
Remote Protocol
Marionette
Tracking
(firefox63 fixed)
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: ato, Assigned: ato)
Details
Attachments
(1 file, 1 obsolete file)
6.10 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
pageLoadStrategy can be null when given to geckodriver, where we
do capabilities matching, but not when we send the effective set
of capabilities to Marionette.
This was discovered when reviewing
https://bugzilla.mozilla.org/show_bug.cgi?id=1264259.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → ato
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•6 years ago
|
||
Capabilities matching is now done in geckodriver and Marionette
receives the negotiated set of capabilities, so there is no need
to derive default values in case the value is null.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Capabilities matching is now done in geckodriver and Marionette
receives the negotiated set of capabilities, so there is no need
to derive default values in case the value is null.
Attachment #8995496 -
Attachment is obsolete: true
Attachment #8995515 -
Flags: review?(hskupin)
Assignee | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment on attachment 8995515 [details] [diff] [review]
Disallow pageLoadStrategy to be null.
Review of attachment 8995515 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/marionette/capabilities.js
@@ +473,5 @@
>
> + if (Object.values(PageLoadStrategy).includes(v)) {
> + matched.set("pageLoadStrategy", v);
> + } else {
> + throw new InvalidArgumentError("Unknown page load strategy: " + v);
Please change to use a template string.
Attachment #8995515 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 6•6 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #5)
> ::: testing/marionette/capabilities.js
> @@ +473,5 @@
> >
> > + if (Object.values(PageLoadStrategy).includes(v)) {
> > + matched.set("pageLoadStrategy", v);
> > + } else {
> > + throw new InvalidArgumentError("Unknown page load strategy: " + v);
>
> Please change to use a template string.
This shouldn’t be necessary.
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6069c381aa8e
Disallow pageLoadStrategy to be null. r=whimboo
Comment 8•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 9•6 years ago
|
||
(In reply to Andreas Tolfsen 「:ato」 from comment #6)
> > Please change to use a template string.
>
> This shouldn’t be necessary.
Sure, but it would have made the code look identical to all the other error lines.
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•