Closed Bug 1518559 Opened 6 years ago Closed 6 years ago

[remote-dbg-next] Dispatch select page failure action if the page argument is missing

Categories

(DevTools :: about:debugging, enhancement, P1)

enhancement

Tracking

(firefox66 fixed)

RESOLVED FIXED
Firefox 66
Tracking Status
firefox66 --- fixed

People

(Reporter: jdescottes, Assigned: ogasidlo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Follow up form Bug 1515612. We are adding a SELECT_PAGE_FAILURE action, so we would dispatch it in case the action is called without the page argument. Or rather than dispatching it, we could simply throw an error and let the try/catch dispatch the appropriate action:

  if (!page || isSamePage(currentPage, page)) {
    return;
  }

Currently we silently bail out. Note that isSamePage(currentPage, page) should still do that, we should only throw if page is missing.

Assignee: nobody → ogasidlo
Priority: -- → P3
Throw error and dispatch select page failure action if the page argument is missing
Attachment #9036297 - Attachment description: Bug 1518559 Throw error, if page is missing. r=ladybenko,jdescottes → Bug 1518559 - Throw error, if page is missing. r=ladybenko,jdescottes
Status: NEW → ASSIGNED
Priority: P3 → P1
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cfc581f4768c Throw error, if page is missing. r=ladybenko,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: