@@ 45,7 45,11 @@ serveSession sessions = WD.withSession fail (\uuid session -> msum [
getWindowHandle uuid,
delSession sessions uuid, -- Closing the only window closes the session.
switchWindowHandle uuid,
- dir "handles" $ getWindowHandles uuid
+ dir "handles" $ getWindowHandles uuid,
+ dir "rect" $ unsupportedOp,
+ dir "maximize" $ unsupportedOp,
+ dir "minimize" $ unsupportedOp,
+ dir "fullscreen" $ unsupportedOp
],
dir "frame" $ msum [noSuchFrame, dir "parent" $ ok $ toResponse ()] -- Noops
]) sessions
@@ 153,3 157,7 @@ noSuchFrame = do
method POST
nullDir
errJSON 404 "no such frame" "Rhapsode doesn't support frames"
+
+unsupportedOp = do
+ nullDir
+ errJSON 400 "unsupported operation" "Windowsize is meaningless to Rhapsode"